コード例 #1
0
 /// <summary>
 /// Gets the instance.
 /// </summary>
 /// <param name="loggerName">Name of the logger.</param>
 /// <returns>LogHelper.</returns>
 public static CommonLogHelper GetInstance(string loggerName)
 {
     if (_instance == null)
     {
         lock (Lock)
         {
             if (_instance == null)
             {
                 _instance = new CommonLogHelper(loggerName);
             }
         }
     }
     return(_instance);
 }
コード例 #2
0
 /// <summary>
 /// Gets the instance.
 /// </summary>
 /// <returns>LogHelper.</returns>
 public static CommonLogHelper GetInstance()
 {
     if (_instance == null)
     {
         lock (Lock)
         {
             if (_instance == null)
             {
                 _instance = new CommonLogHelper();
             }
         }
     }
     return(_instance);
 }