Exemple #1
0
        static LoggerSet createLogger(string name)
        {
            var logger = new LoggerSet(name);

            logger.logLevel = globalLogLevel;
            logger.OnLog   += _appenders;
            return(logger);
        }
Exemple #2
0
        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));
        }