Example #1
0
 /// <summary>
 /// Unregisters the specified log level from Logzy. Log entries which have
 /// unregistered log levels will not be sent to the destinations.
 /// </summary>
 /// <param name="level">The level to be unregistered.</param>
 public void UnregisterLogLevel(LogzyLevel level)
 {
     if (LoggedLevels.Contains(level))
     {
         LoggedLevels.Remove(level);
     }
 }
Example #2
0
 /// <summary>
 /// Registers the specified log level into Logzy. Log entries with the
 /// registered log levels will be sent to the destinations.
 /// </summary>
 /// <param name="level">The level to be registered.</param>
 public void RegisterLogLevel(LogzyLevel level)
 {
     if (!LoggedLevels.Contains(level))
     {
         LoggedLevels.Add(level);
     }
 }