Beispiel #1
0
    static Logger* getInstance()
    {
      if(instance == NULL)
        initialize(LogSettings());

      return instance;
    }
Beispiel #2
0
 /**
  * Get the singleton instance.
  * @return The internal instance of the logger that should be used.
  */
 static Logger& getInstance()
 {
     if (nullptr == instance)
     {
         initialize(LogSettings());
     }
     return *instance;
 }
Beispiel #3
0
 /**
  * Initialize an instance of the default logger and store it as internal instance.
  */
 static void initialize()
 {
     initialize(LogSettings());
 }