public void Log(string message, LogMode mode) { if (EngineLogger.CheckMode(mode)) { string message2 = EngineLogger.AppendTraces(message); this.logger.Info(message2); } }
public static void Log(object key, string message, LogMode mode, StaticLog type) { int logMode = 5; if (mode <= (LogMode)logMode) { string message2 = string.Format("{0} - {1}", key, message); string message3 = EngineLogger.AppendTraces(message2); ILog log = EngineLogger.loggers[type]; log.Info(message3); } }