Пример #1
0
        public static void Log(LogLevel level, string message, params object[] args)
        {
            if (LoggerInstance == null)
            {
                LoggerInstance = new ConsoleLogger();
                MinLogLevel    = LogLevel.Info;
            }

            if (level >= MinLogLevel)
            {
                LoggerInstance.LogMessage(level, String.Format(message, args));
            }
        }