Ejemplo n.º 1
0
 public void Log(LogLevel level, string message)
 {
     HandlerItems.Add(new HandlerItem
     {
         Timestamp = Timestamp,
         Type      = "LOG " + level,
         Message   = message
     });
 }
Ejemplo n.º 2
0
 public void HandleError(Exception exception)
 {
     HandlerItems.Add(new HandlerItem
     {
         Timestamp = Timestamp,
         Type      = "ERROR",
         Message   = exception.Message
     });
 }