| 31 | } |
| 32 | |
| 33 | Log* Log::create( const std::string& logPath, const LogLevel& level, bool stdOutLog, |
| 34 | bool liveWrite ) { |
| 35 | if ( NULL == ms_singleton ) { |
| 36 | ms_singleton = eeNew( Log, ( logPath, level, stdOutLog, liveWrite ) ); |
| 37 | } else { |
| 38 | ms_singleton->setLogLevelThreshold( level ); |
| 39 | ms_singleton->setLogToStdOut( stdOutLog ); |
| 40 | ms_singleton->setLiveWrite( liveWrite ); |
| 41 | } |
| 42 | return ms_singleton; |
| 43 | } |
| 44 | |
| 45 | Log* Log::create( const LogLevel& level, bool stdOutLog, bool liveWrite ) { |
| 46 | if ( NULL == ms_singleton ) { |
nothing calls this directly
no test coverage detected