public static void LogError(Exception e) { instance = GetInstance(); if (instance != null) { instance.XLogError(e); } }
public static void LogInfo(string errormsg) { instance = GetInstance(); if (instance != null) { instance.XLogInfo(errormsg); } }
private static XLogManager GetInstance() { if (instance == null) { lock (o) { if (instance == null) { instance = new XLogManager(); } } } return(instance); }