29 using log4net.Appender;
32 namespace OpenSim.Framework.Console
43 get {
return m_console; }
44 set { m_console = value; }
47 override protected void Append(LoggingEvent le)
49 if (m_console != null)
50 m_console.LockOutput();
52 string loggingMessage = RenderLoggingEvent(le);
56 if (m_console != null)
58 string level =
"normal";
60 if (le.Level == Level.Error)
62 else if (le.Level == Level.Warn)
65 m_console.Output(loggingMessage, level);
69 if (!loggingMessage.EndsWith(
"\n"))
70 System.Console.WriteLine(loggingMessage);
72 System.Console.Write(loggingMessage);
77 System.Console.WriteLine(
"Couldn't write out log message: {0}", e.ToString());
81 if (m_console != null)
82 m_console.UnlockOutput();
Writes log information out onto the console
override void Append(LoggingEvent le)