LoggerLine Struct Reference

#include <logger.h>

详细描述

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 ||----—+-+ +-----—+ ++==========++ | +----------—+ +—>| 应用程序 |–+ +----------—+ | | +----—+ +->|Process| +----—+

公共成员函数

  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

构造函数 & 析构函数文档编制

◆  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

SourceLocation _loc

◆  _tmpValues

DataDictionary _tmpValues