Jpp 20.0.0-27-g39925593c-D
the software that should make you happy
Loading...
Searching...
No Matches
Classes | Functions
jlog.cc File Reference
#include "log.hh"
#include <JLogger/JMessageLogger.hh>
#include <JLogger/JMessageStream.hh>
#include <JLogger/JControlHostLogger.hh>

Go to the source code of this file.

Classes

class  MLSing
 

Functions

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

Function Documentation

◆ initLogger()

Author
cpellegrino

Definition at line 38 of file jlog.cc.

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

◆ 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}