static SampleClientFixture() { //Hook up a logger for the CIAPI.CS libraries LogManager.CreateInnerLogger = (logName, logLevel, showLevel, showDateTime, showLogName, dateTimeFormat) => { var logger = new SimpleDebugAppender(logName, logLevel, showLevel, showDateTime, showLogName, dateTimeFormat); return logger; }; }
static SampleClientFixture () { //Hook up a logger for the CIAPI.CS libraries LogManager.CreateInnerLogger = (logName, logLevel, showLevel, showDateTime, showLogName, dateTimeFormat) => { SimpleDebugAppender logger = new SimpleDebugAppender(logName, logLevel, showLevel, showDateTime, showLogName, dateTimeFormat); logger.LogEvent += (s, e) => { lock (LogOutput) { LogOutput.AppendLine(string.Format("{0} {1} {2}", e.Level, e.Message, e.Exception)); } }; return logger; }; }
static LoggingFixtureBase() { LogManager.CreateInnerLogger = (logName, logLevel, showLevel, showDateTime, showLogName, dateTimeFormat) => { var logger = new SimpleDebugAppender(logName, logLevel, showLevel, showDateTime, showLogName, dateTimeFormat); logger.LogEvent += (s, e) => { lock (LogOutput) { LogOutput.AppendLine( string.Format("{0} {1} {2}", e.Level, e.Message, e.Exception)); } }; return logger; }; }