Ejemplo n.º 1
0
 /// <summary>
 /// Logs block of text with specified level
 /// </summary>
 public void LogText(string title, string description, LogLevel logLevel)
 {
     try
     {
         sink.Emit(
             entryFormatter.FormatEntryText(title, description, logLevel, DataType.Text, DateTime.Now),
             logLevel
             );
     }
     catch (Exception ex)
     {
         InternalLog(ex);
     }
 }
Ejemplo n.º 2
0
 public void Emit(string logEntry, LogLevel level)
 {
     if (level >= minimumLevel && level <= maximumLevel)
     {
         innerSink.Emit(logEntry, level);
     }
 }