AnCH Framework 0.1
Another C++ Hack Framework
 
Loading...
Searching...
No Matches
anch::logger Namespace Reference

Logger namespace. More...

Namespaces

namespace  formatter
 Logger formatter internalnamespace.
 

Classes

class  Logger
 
class  LoggerConfiguration
 
class  LoggerFactory
 Logger factory. More...
 
class  LowPriorityWriter
 
class  MapDiagnosticContext
 Map Diagnostic Context. More...
 
class  ThreadSafeWriter
 
class  Writer
 

Enumerations

enum class  Level {
  TRACE = 0 , DEBUG = 10 , INFO = 20 , WARN = 30 ,
  ERROR = 40 , FATAL = 50
}
 

Variables

const std::map< const Level, const std::string > LEVEL_LABEL
 
const std::map< const std::string, const LevelLABEL_LEVEL
 
const std::string MDC_THREAD_ID
 
std::map< std::string, std::string > MDC_CONST
 
thread_local MapDiagnosticContext MDC
 

Detailed Description

Logger namespace.

It contains ready (and easy) to use logger library.

Enumeration Type Documentation

◆ Level

enum class anch::logger::Level
strong

Logging levels declaration

Author
Vincent Lachenal
Enumerator
TRACE 

Trace logging level

DEBUG 

Debug logging level

INFO 

Information logging level

WARN 

Warning logging level

ERROR 

Error logging level

FATAL 

Fatal logging level

Variable Documentation

◆ LABEL_LEVEL

const std::map<const std::string, const Level> anch::logger::LABEL_LEVEL
extern

Labels->levels for logging definition

◆ LEVEL_LABEL

const std::map<const Level, const std::string> anch::logger::LEVEL_LABEL
extern

Level->labels for logging defintion

◆ MDC

thread_local MapDiagnosticContext anch::logger::MDC
extern

MapDiagnosticContext current thread instance

◆ MDC_CONST

std::map<std::string,std::string> anch::logger::MDC_CONST
extern

MDC constant values

◆ MDC_THREAD_ID

const std::string anch::logger::MDC_THREAD_ID
extern

Thread ID key in diagnostic context