Example #1
0
 public void WriteLog(SourceLevels lv, string formart, params string[] args)
 {
     if (args == null || args.Length == 0)
     {
         logger.Log(LoggingLevel.FromSourceLevels(lv), formart);
     }
     else
     {
         logger.LogFormat(LoggingLevel.FromSourceLevels(lv), formart, args);
     }
 }