예제 #1
0
 public static LogQueue GetInstance()
 {
     if (logQueue == null)
     {
         lock (o)
         {
             logQueue = new LogQueue();
         }
     }
     return(logQueue);
 }
예제 #2
0
 public static void Warning(string directory, string message)
 {
     LogQueue.GetInstance().WriterQueue(LogTypeEnum.Warning, directory, message);
 }
예제 #3
0
 public static void Error(string directory, string message, Exception ex)
 {
     LogQueue.GetInstance().WriterQueue(LogTypeEnum.Error, string.Empty, ConvertToString(ex));
 }
예제 #4
0
 public static void Error(string directory, string message)
 {
     LogQueue.GetInstance().WriterQueue(LogTypeEnum.Error, directory, message);
 }
예제 #5
0
 public static void Debug(string directory, string message, Exception ex)
 {
     LogQueue.GetInstance().WriterQueue(LogTypeEnum.Debug, directory, ConvertToString(ex, message));
 }
예제 #6
0
 public static void Debug(string message)
 {
     LogQueue.GetInstance().WriterQueue(LogTypeEnum.Debug, string.Empty, message);
 }