Ring Daemon 16.0.0
Loading...
Searching...
No Matches
logger.cpp File Reference
Include dependency graph for logger.cpp:

Go to the source code of this file.

Classes

class  jami::ConsoleLog
 
class  jami::FileLog
 
class  jami::Logger::Handler
 
class  jami::MonitorLog
 
struct  jami::Logger::Msg
 
class  jami::SysLog
 

Namespaces

namespace  jami
 

Macros

#define CYAN   "\033[22;36m"
 
#define END_COLOR   "\033[0m"
 
#define LOGFILE   "jami"
 
#define RED   "\033[22;31m"
 
#define YELLOW   "\033[01;33m"
 

Functions

static const charjami::check_error (char *result, char *)
 
static const charjami::check_error (int result, char *buffer)
 
std::string jami::formatHeader (const char *const file, int line)
 
std::string jami::formatPrintfArgs (const char *format, va_list ap)
 
template<typename T >
void jami::log_to_if_enabled (T &handler, Logger::Msg &msg)
 
void jami::strErr ()
 Thread-safe function to print the stringified contents of errno.
 
static const charjami::stripDirName (const char *path)
 

Variables

static std::atomic_bool jami::debugEnabled_ {false}
 
static constexpr auto jami::ENDL = '\n'
 

Macro Definition Documentation

◆ CYAN

#define CYAN   "\033[22;36m"

Definition at line 66 of file logger.cpp.

◆ END_COLOR

#define END_COLOR   "\033[0m"

Definition at line 61 of file logger.cpp.

◆ LOGFILE

#define LOGFILE   "jami"

Definition at line 75 of file logger.cpp.

◆ RED

#define RED   "\033[22;31m"

Definition at line 64 of file logger.cpp.

◆ YELLOW

#define YELLOW   "\033[01;33m"

Definition at line 65 of file logger.cpp.