Ejemplo n.º 1
0
 public static AbstractLogUtil GetLogger()
 {
     if (AbstractLogUtil._logger == null)
     {
         AbstractLogUtil.SetLogger(new DefaultLogger(), LogLevel.Error);
     }
     return(AbstractLogUtil._logger);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Set the actual logger class instance
 /// </summary>
 /// <param name="logger">A logger class instance of type AbstractLogUtil</param>
 /// <param name="logLevel">The log level</param>
 public static void SetLogger(AbstractLogUtil logger, LogLevel logLevel)
 {
     AbstractLogUtil._logger       = logger;
     AbstractLogUtil._logger.Level = logLevel;
 }