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