This commit is contained in:
2007-12-05 13:12:16 +00:00
parent 9a386f7b2b
commit 7e648b560c
5 changed files with 7 additions and 10 deletions

View File

@@ -37,7 +37,8 @@ namespace DataLoader
private FolderTreeNode _topnode;
private bool UseVeTree = false;
#region Log4Net
public static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
public static readonly log4net.ILog _MyLog = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
//public static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
#endregion
private Loader ldr;
public bool cbSaveDocChecked { get { return cbSaveDoc.Checked; } }
@@ -64,7 +65,7 @@ namespace DataLoader
public frmLoader()
{
ldr = new Loader(log, this);
ldr = new Loader(_MyLog, this);
InitializeComponent();
lblTime.Tag = DateTime.Now;
switch (SystemInformation.ComputerName.ToUpper())
@@ -190,7 +191,6 @@ namespace DataLoader
if (vi.Title.ToUpper() == tbSource.Text.ToUpper())
{
v = DocVersion.Get(vi.VersionID);
Database.LogInfoFormat("Before MigrateDocVersion");
Item itm = ldr.MigrateDocVersion(v);
}
}
@@ -216,7 +216,7 @@ namespace DataLoader
}
catch (Exception ex)
{
log.ErrorFormat("{0}\r\n\r\n{1}", ex.Message, ex.InnerException);
_MyLog.ErrorFormat("{0}\r\n\r\n{1}", ex.Message, ex.InnerException);
}
}
//Database.LoggingInfo = (pbProc.Value > 153 && pbSect.Value > 11 && pbStep.Value > 61);