static LoggerSet createLogger(string name) { var logger = new LoggerSet(name); logger.logLevel = globalLogLevel; logger.OnLog += _appenders; return(logger); }
public string FormatMessage(LoggerSet logger, LogLevelSet logLevel, string message) { var logLevelStr = ("[" + logLevel.ToString().ToUpper() + "]").PadRight(_maxLogLevelLength); return(string.Format(Format, logLevelStr, logger.name, message)); }
public string FormatMessage(LoggerSet logger, LogLevelSet logLevel, string message) { var time = string.Format(Format, DateTime.Now); return(string.Format(Format, time + " " + message)); }