Ejemplo n.º 1
0
 /// <summary>
 /// Record Host info to log file. Message will not be recored when property LogLevel is higher
 /// than the specified log level in parameter
 /// </summary>
 /// <param name="logLevel">The log level of current operation</param>
 public static void HostInfo(LogLevel logLevel = LogLevel.Debug)
 {
     if (null == _logInstance)
     {
         throw new InvalidOperationException("Logger should be initialized before using.");
     }
     if (_enabled == LogDisabled || logLevel < LogLevel)
     {
         return;
     }
     _logInstance.HostInfo(logLevel);
 }