CppLogging  1.0.4.0
C++ Logging Library
Classes | Enumerations | Functions | Variables
CppLogging Namespace Reference

C++ Logging project definitions. More...

Classes

class  Appender
 Logging appender interface. More...
 
class  ConsoleAppender
 Console (stdout) appender. More...
 
class  DebugAppender
 Debug appender. More...
 
class  ErrorAppender
 Error (stderr) appender. More...
 
class  FileAppender
 File appender. More...
 
class  MemoryAppender
 Memory appender. More...
 
class  NullAppender
 Null appender. More...
 
class  OstreamAppender
 Output stream (std::ostream) appender. More...
 
class  RollingFileAppender
 Rolling file appender. More...
 
class  SyslogAppender
 Syslog appender. More...
 
class  Config
 Logger configuration static class. More...
 
class  Element
 Logging element interface. More...
 
class  Filter
 Logging filter interface. More...
 
class  LevelFilter
 Level filter. More...
 
class  LoggerFilter
 Logger filter. More...
 
class  MessageFilter
 Message filter. More...
 
class  SwitchFilter
 Switch filter. More...
 
class  Layout
 Logging layout interface. More...
 
class  BinaryLayout
 Binary layout. More...
 
class  EmptyLayout
 Empty layout. More...
 
class  HashLayout
 Hash layout. More...
 
class  NullLayout
 Null layout. More...
 
class  TextLayout
 Text layout. More...
 
class  Logger
 Logger interface. More...
 
class  Processor
 Logging processor interface. More...
 
class  AsyncWaitFreeProcessor
 Asynchronous wait-free logging processor. More...
 
class  AsyncWaitFreeQueue
 Asynchronous wait-free logging ring queue. More...
 
class  AsyncWaitProcessor
 Asynchronous wait logging processor. More...
 
class  BufferedProcessor
 Buffered logging processor. More...
 
class  ExclusiveProcessor
 Exclusive logging processor. More...
 
class  SyncProcessor
 Synchronous logging processor. More...
 
class  Record
 Logging record. More...
 
class  Trigger
 Logging trigger. More...
 

Enumerations

enum class  TimeRollingPolicy {
  YEAR , MONTH , DAY , HOUR ,
  MINUTE , SECOND
}
 Time rolling policy. More...
 
enum class  Level : uint8_t {
  NONE = 0x00 , FATAL = 0x1F , ERROR = 0x3F , WARN = 0x7F ,
  INFO = 0x9F , DEBUG = 0xBF , ALL = 0xFF
}
 Logging level. More...
 
enum class  ArgumentType : uint8_t {
  ARG_UNKNOWN , ARG_BOOL , ARG_CHAR , ARG_WCHAR ,
  ARG_INT8 , ARG_UINT8 , ARG_INT16 , ARG_UINT16 ,
  ARG_INT32 , ARG_UINT32 , ARG_INT64 , ARG_UINT64 ,
  ARG_FLOAT , ARG_DOUBLE , ARG_STRING , ARG_POINTER ,
  ARG_NAMEDARG , ARG_CUSTOM , ARG_LIST
}
 

Functions

template<class TOutputStream >
TOutputStream & operator<< (TOutputStream &stream, TimeRollingPolicy policy)
 Stream output: Time rolling policy. More...
 
template<class TOutputStream >
TOutputStream & operator<< (TOutputStream &stream, Level level)
 Stream output: Logging level. More...
 
void SerializeArgument (Record &record)
 
void SerializeArgument (Record &record, bool argument)
 
void SerializeArgument (Record &record, char argument)
 
void SerializeArgument (Record &record, wchar_t argument)
 
void SerializeArgument (Record &record, int8_t argument)
 
void SerializeArgument (Record &record, uint8_t argument)
 
void SerializeArgument (Record &record, int16_t argument)
 
void SerializeArgument (Record &record, uint16_t argument)
 
void SerializeArgument (Record &record, int32_t argument)
 
void SerializeArgument (Record &record, uint32_t argument)
 
void SerializeArgument (Record &record, int64_t argument)
 
void SerializeArgument (Record &record, uint64_t argument)
 
void SerializeArgument (Record &record, float argument)
 
void SerializeArgument (Record &record, double argument)
 
void SerializeArgument (Record &record, const char *argument)
 
void SerializeArgument (Record &record, std::string_view argument)
 
void SerializeArgument (Record &record, const std::string &argument)
 
template<typename T >
void SerializeArgument (Record &record, T *argument)
 
template<typename T >
void SerializeArgument (Record &record, const T *argument)
 
template<typename T >
void SerializeArgument (Record &record, const fmt::detail::named_arg< char, T > &argument)
 
template<typename T >
void SerializeArgument (Record &record, const T &argument)
 
template<typename T , typename... Args>
void SerializeArgument (Record &record, const T &argument, Args &&... args)
 
void swap (Record &record1, Record &record2) noexcept
 

Variables

const char version [] = "1.0.4.0"
 Project version. More...
 

Detailed Description

C++ Logging project definitions.

Enumeration Type Documentation

◆ ArgumentType

enum CppLogging::ArgumentType : uint8_t
strong
Enumerator
ARG_UNKNOWN 
ARG_BOOL 
ARG_CHAR 
ARG_WCHAR 
ARG_INT8 
ARG_UINT8 
ARG_INT16 
ARG_UINT16 
ARG_INT32 
ARG_UINT32 
ARG_INT64 
ARG_UINT64 
ARG_FLOAT 
ARG_DOUBLE 
ARG_STRING 
ARG_POINTER 
ARG_NAMEDARG 
ARG_CUSTOM 
ARG_LIST 

Definition at line 22 of file record.inl.

◆ Level

enum CppLogging::Level : uint8_t
strong

Logging level.

Enumerator
NONE 

Log nothing.

FATAL 

Log fatal errors.

ERROR 

Log errors.

WARN 

Log warnings.

INFO 

Log information.

DEBUG 

Log debug.

ALL 

Log everything.

Definition at line 17 of file level.h.

◆ TimeRollingPolicy

Time rolling policy.

Enumerator
YEAR 

Year rolling policy.

MONTH 

Monthly rolling policy.

DAY 

Daily rolling policy.

HOUR 

Hour rolling policy.

MINUTE 

Minute rolling policy.

SECOND 

Second rolling policy.

Definition at line 21 of file rolling_file_appender.h.

Function Documentation

◆ operator<<() [1/2]

template<class TOutputStream >
TOutputStream & CppLogging::operator<< ( TOutputStream &  stream,
Level  level 
)
inline

Stream output: Logging level.

Parameters
stream- Output stream
level- Logging level
Returns
Output stream

Definition at line 12 of file level.inl.

◆ operator<<() [2/2]

template<class TOutputStream >
TOutputStream & CppLogging::operator<< ( TOutputStream &  stream,
TimeRollingPolicy  policy 
)
inline

Stream output: Time rolling policy.

Parameters
stream- Output stream
policy- Time rolling policy
Returns
Output stream
Examples
format.cpp.

Definition at line 12 of file rolling_file_appender.inl.

◆ SerializeArgument() [1/22]

void CppLogging::SerializeArgument ( Record record)
inline

Definition at line 45 of file record.inl.

◆ SerializeArgument() [2/22]

void CppLogging::SerializeArgument ( Record record,
bool  argument 
)
inline

Definition at line 49 of file record.inl.

◆ SerializeArgument() [3/22]

void CppLogging::SerializeArgument ( Record record,
char  argument 
)
inline

Definition at line 62 of file record.inl.

◆ SerializeArgument() [4/22]

void CppLogging::SerializeArgument ( Record record,
const char *  argument 
)
inline

Definition at line 218 of file record.inl.

◆ SerializeArgument() [5/22]

template<typename T >
void CppLogging::SerializeArgument ( Record record,
const fmt::detail::named_arg< char, T > &  argument 
)
inline

Definition at line 301 of file record.inl.

◆ SerializeArgument() [6/22]

void CppLogging::SerializeArgument ( Record record,
const std::string &  argument 
)
inline

Definition at line 254 of file record.inl.

◆ SerializeArgument() [7/22]

template<typename T >
void CppLogging::SerializeArgument ( Record record,
const T &  argument 
)
inline

Definition at line 347 of file record.inl.

◆ SerializeArgument() [8/22]

template<typename T , typename... Args>
void CppLogging::SerializeArgument ( Record record,
const T &  argument,
Args &&...  args 
)
inline

Definition at line 354 of file record.inl.

◆ SerializeArgument() [9/22]

template<typename T >
void CppLogging::SerializeArgument ( Record record,
const T *  argument 
)
inline

Definition at line 287 of file record.inl.

◆ SerializeArgument() [10/22]

void CppLogging::SerializeArgument ( Record record,
double  argument 
)
inline

Definition at line 207 of file record.inl.

◆ SerializeArgument() [11/22]

void CppLogging::SerializeArgument ( Record record,
float  argument 
)
inline

Definition at line 196 of file record.inl.

◆ SerializeArgument() [12/22]

void CppLogging::SerializeArgument ( Record record,
int16_t  argument 
)
inline

Definition at line 110 of file record.inl.

◆ SerializeArgument() [13/22]

void CppLogging::SerializeArgument ( Record record,
int32_t  argument 
)
inline

Definition at line 133 of file record.inl.

◆ SerializeArgument() [14/22]

void CppLogging::SerializeArgument ( Record record,
int64_t  argument 
)
inline

Definition at line 155 of file record.inl.

◆ SerializeArgument() [15/22]

void CppLogging::SerializeArgument ( Record record,
int8_t  argument 
)
inline

Definition at line 88 of file record.inl.

◆ SerializeArgument() [16/22]

void CppLogging::SerializeArgument ( Record record,
std::string_view  argument 
)
inline

Definition at line 236 of file record.inl.

◆ SerializeArgument() [17/22]

template<typename T >
void CppLogging::SerializeArgument ( Record record,
T *  argument 
)
inline

Definition at line 273 of file record.inl.

◆ SerializeArgument() [18/22]

void CppLogging::SerializeArgument ( Record record,
uint16_t  argument 
)
inline

Definition at line 122 of file record.inl.

◆ SerializeArgument() [19/22]

void CppLogging::SerializeArgument ( Record record,
uint32_t  argument 
)
inline

Definition at line 144 of file record.inl.

◆ SerializeArgument() [20/22]

void CppLogging::SerializeArgument ( Record record,
uint64_t  argument 
)
inline

Definition at line 166 of file record.inl.

◆ SerializeArgument() [21/22]

void CppLogging::SerializeArgument ( Record record,
uint8_t  argument 
)
inline

Definition at line 99 of file record.inl.

◆ SerializeArgument() [22/22]

void CppLogging::SerializeArgument ( Record record,
wchar_t  argument 
)
inline

Definition at line 75 of file record.inl.

◆ swap()

void CppLogging::swap ( Record record1,
Record record2 
)
inlinenoexcept

Definition at line 472 of file record.inl.

Variable Documentation

◆ version

const char CppLogging::version[] = "1.0.4.0"

Project version.

Definition at line 34 of file version.h.