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