LoggerLine Struct Reference

#include <logger.h>

Detailed Description

Each object of LoggerLine represents an entry in the logger with several meta information. See documentation of members for more information.

The logger system is an abstract way to control, where which output will be sent or written to. The logger system can be seen as a small node system. A string enters the node system and is sent from one node to another. The insertion points are represented by a logger entity (LoggerInterface). The nodes which actively write the string (e.g. to a file or a console) are called logger types (LoggerTypeInterface). Each logger can contain a various number of logger types. Each logger type belongs to one ore more logger. One or more loggers can share the same logger type. Only loggers are used after they are initialized. Logger types are normally not called directly unless necessary.

    Logger           |      Logger Types 
                       +-------+
                 +---->|Process|

++==========++ | +----—+ || Logger 1 ||----—+ ++==========++ | +-—>+-----—+ | File |–+ +-->+-----—+ | +-----—+ ++==========++ | +—>| File | || Logger 2 ||----—+-+ +-----—+ ++==========++ | +----------—+ +—>| Application |–+ +----------—+ | | +----—+ +->|Process| +----—+

Public Member Functions

 LoggerLine ()=default
 
 LoggerLine (WRITEMETA level, const String &str, const String &time, const SourceLocation &loc, Int threadId)
 

Public Attributes

WRITEMETA _level
 
String _str
 
String _time
 
Int _threadId
 
SourceLocation _loc
 
DataDictionary _tmpValues
 

Constructor & Destructor Documentation

◆ LoggerLine() [1/2]

LoggerLine ( )
default

◆ LoggerLine() [2/2]

LoggerLine ( WRITEMETA  level,
const String str,
const String time,
const SourceLocation loc,
Int  threadId 
)

Member Data Documentation

◆ _level

WRITEMETA _level

◆ _str

String _str

◆ _time

String _time

◆ _threadId

Int _threadId

◆ _loc

◆ _tmpValues

DataDictionary _tmpValues