Esempio n. 1
0
 /// <summary>
 /// Called by classes in GonzoNet to log a message.
 /// </summary>
 /// <param name="Msg"></param>
 public static void Log(string Message, LogLevel Lvl)
 {
     if (GlobalSettings.Default.DEBUG_BUILD)
     {
         LogMessage Msg = new LogMessage(Message, Lvl);
         OnMessageLogged(Msg);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// KISS threw an exception.
 /// </summary>
 /// <param name="Msg">The message that was logged.</param>
 private void Logger_OnMessageLogged(LogMessage Msg)
 {
     switch (Msg.Level)
     {
         case LogLevel.error:
             Log.LogThis(Msg.Message, eloglevel.error);
             break;
         case LogLevel.info:
             Log.LogThis(Msg.Message, eloglevel.info);
             break;
         case LogLevel.warn:
             Log.LogThis(Msg.Message, eloglevel.warn);
             break;
     }
 }