Пример #1
0
 private static FeatherLogger CreateFeatherLogger()
 {
     try
     {
         var returnLogger = new FeatherLogger(
             logMode: FeatherLoggerMode,
             traceLevel: FeatherLoggerTraceLevel,
             folderName: FolderName,
             filename: "Nightingale",
             hasTimestampInFilename: true,
             extension: "xml");
         return(returnLogger);
     }
     catch (Exception ex)
     {
         _logger.Error(ex); // not Logger! You wouldn't want recursion
         throw;
     }
 }
Пример #2
0
 public MainForm()
 {
     InitializeComponent();
     _logger = GlobalObjects.Logger;
     _logger.OpenSection("MainForm");
 }
Пример #3
0
 public DatabaseCopier(FeatherLogger logger)
 {
     _logger = logger;
 }
Пример #4
0
 public DatabaseCreator(FeatherLogger logger)
 {
     _logger = logger;
 }