Пример #1
0
 /// <summary>
 /// Determines whether this instance is enabled the specified log level.
 /// </summary>
 /// <returns><c>true</c> if this instance is enabled the specified log level; otherwise, <c>false</c>.</returns>
 /// <param name="loglevel">The log level.</param>
 public Boolean IsEnabled(GenericMath.Common.Contracts.LogLevel loglevel)
 {
     return(this._logger.IsEnabled(loglevel.ConvertToNLogLogLevel()));
 }
Пример #2
0
 /// <summary>
 /// Log the specified log level and message.
 /// </summary>
 /// <param name="loglevel">The log level.</param>
 /// <param name="message">The message.</param>
 public void Log(GenericMath.Common.Contracts.LogLevel loglevel, String message)
 {
     this._logger.Log(loglevel.ConvertToNLogLogLevel(), message);
 }