public static LogQueue GetInstance() { if (logQueue == null) { lock (o) { logQueue = new LogQueue(); } } return(logQueue); }
public static void Warning(string directory, string message) { LogQueue.GetInstance().WriterQueue(LogTypeEnum.Warning, directory, message); }
public static void Error(string directory, string message, Exception ex) { LogQueue.GetInstance().WriterQueue(LogTypeEnum.Error, string.Empty, ConvertToString(ex)); }
public static void Error(string directory, string message) { LogQueue.GetInstance().WriterQueue(LogTypeEnum.Error, directory, message); }
public static void Debug(string directory, string message, Exception ex) { LogQueue.GetInstance().WriterQueue(LogTypeEnum.Debug, directory, ConvertToString(ex, message)); }
public static void Debug(string message) { LogQueue.GetInstance().WriterQueue(LogTypeEnum.Debug, string.Empty, message); }