GetConfiguration() private static method

private static GetConfiguration ( ) : void
return void
Ejemplo n.º 1
0
 /// <summary>
 /// Get the current logger, if no logger has been specified in a previous call then the
 /// default logger will be returned
 /// </summary>
 /// <returns>provides access to the logging methods</returns>
 public static Logging GetLogger()
 {
     lock (memoryLock)
     {
         if (privateInstance == null)
         {
             privateInstance = new Logging("Default");
         }
     }
     Logging.GetConfiguration();
     return(privateInstance);
 }
Ejemplo n.º 2
0
 public static Logging GetLogger(string requestedLogName)
 {
     lock (memoryLock)
     {
         if (privateInstance == null)
         {
             privateInstance = new Logging(requestedLogName);
         }
         else
         {
             privateInstance.logName = requestedLogName;
         }
     }
     Logging.GetConfiguration();
     return(privateInstance);
 }