Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
jlog.cc File Reference

Go to the source code of this file.

Classes

class  MLSing
 

Functions

void initLogger (JMessageLoggerThreadSafe const &second)
 
void setLogLevel (int level)
 

Function Documentation

◆ initLogger()

void initLogger ( JLOGGER::JMessageLoggerThreadSafe const & second)
Author
cpellegrino

Definition at line 38 of file jlog.cc.

39{
40 MLSing::get().init(second);
41}
static MLSing & get()
Definition jlog.cc:20
void init(JMessageLoggerThreadSafe const &second)
Definition jlog.cc:27

◆ setLogLevel()

void setLogLevel ( int level)

Definition at line 43 of file jlog.cc.

44{
45 // This shall be protected from race conditions with a mutex to avoid UB.
46 // But this very UB won't really produce any problem, hopefully.
47 MLSing::get().logger().setLevel(level);
48}
void setLevel(const int __level)
Set debug level.
JMessageLoggerThreadSafe & logger()
Definition jlog.cc:32