MCPcopy Create free account
hub / github.com/SpartanJ/eepp / create

Method create

src/eepp/system/log.cpp:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33Log* 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
45Log* Log::create( const LogLevel& level, bool stdOutLog, bool liveWrite ) {
46 if ( NULL == ms_singleton ) {

Callers

nothing calls this directly

Calls 3

setLogLevelThresholdMethod · 0.80
setLogToStdOutMethod · 0.80
setLiveWriteMethod · 0.80

Tested by

no test coverage detected