Ring Daemon
Loading...
Searching...
No Matches
jami::ConsoleLog Class Referencefinal
Inheritance diagram for jami::ConsoleLog:
Inheritance graph
Collaboration diagram for jami::ConsoleLog:
Collaboration graph

Public Member Functions

 ConsoleLog ()=default
 
void consume (const Logger::Msg &msg) override
 
void printLogImpl (const Logger::Msg &msg, bool with_color)
 
- Public Member Functions inherited from jami::Logger::Handler
virtual void consume (const Msg &msg)=0
 
virtual void enable (bool en)
 
bool isEnable ()
 
virtual ~Handler ()=default
 

Public Attributes

bool withColor_ = !(getenv("NO_COLOR") || getenv("NO_COLORS") || getenv("NO_COLOUR") || getenv("NO_COLOURS"))
 

Additional Inherited Members

- Protected Attributes inherited from jami::Logger::Handler
std::atomic_bool enabled_ {false}
 

Detailed Description

Definition at line 233 of file logger.cpp.

Constructor & Destructor Documentation

◆ ConsoleLog()

jami::ConsoleLog::ConsoleLog ( )
default

References CYAN, jami::emitSignal(), jami::ENDL, RED, and YELLOW.

Here is the call graph for this function:

Member Function Documentation

◆ consume()

void jami::ConsoleLog::consume ( const Logger::Msg &  msg)
inlineoverride

Definition at line 338 of file logger.cpp.

References jami::emitSignal(), printLogImpl(), and withColor_.

Here is the call graph for this function:

◆ printLogImpl()

void jami::ConsoleLog::printLogImpl ( const Logger::Msg &  msg,
bool  with_color 
)
inline

Definition at line 299 of file logger.cpp.

References CYAN, jami::emitSignal(), END_COLOR, jami::ENDL, RED, and YELLOW.

Referenced by consume().

Here is the call graph for this function:

Member Data Documentation

◆ withColor_

bool jami::ConsoleLog::withColor_ = !(getenv("NO_COLOR") || getenv("NO_COLORS") || getenv("NO_COLOUR") || getenv("NO_COLOURS"))

Definition at line 336 of file logger.cpp.

Referenced by consume().


The documentation for this class was generated from the following file: