protected override void Log(LogMessage message)
        {
            #if !DEBUG
            if (message.Severity == LogMessage.SeverityType.Debug)
                return;
            #endif
            if (_writer != null)
            {
                _writer.WriteLine(string.Format("[{0}] {2} {1}",message.Severity, message.Message, message.Stamp));
                string prefix = string.Format("[Exception] {0} ", message.Stamp);
                Exception ex = message.Exception;
                while (ex != null)
                {
                    _writer.WriteLine(prefix + ex.ToString());
                    string extracontent = AdditionalExceptionContent(ex);
                    if (!string.IsNullOrEmpty(extracontent))
                    {
                        _writer.WriteLine(_minorsep);
                        _writer.WriteLine(extracontent);
                        _writer.WriteLine(_minorsep);
                    }
                    _writer.WriteLine(_minorsep);

                    ex = ex.InnerException;
                }
            }
        }
 protected override void Log(LogMessage msg)
 {
     if (msg.Severity >= _severity)
     {
         Console.WriteLine(string.Format("[{0}] {1}", msg.Severity, msg.Message));
         Exception ex = msg.Exception;
         while (ex != null)
         {
             Console.WriteLine(string.Format("[{0}] Exception: {1}", msg.Severity, ex.Message));
             ex = ex.InnerException;
         }
     }
 }
 protected abstract void Log(LogMessage message);