Simple-Log  alpha-v0.7
Prepared Types

Typedefs

using sl::log::preset::Record_t = BaseRecord< SevLvl, std::string >
 Prepared Record type. More...
 
using sl::log::preset::Core_t = Core< Record_t >
 Type alias for log::Core which uses preset::Record_t as Record type. More...
 
using sl::log::preset::Logger_t = BaseLogger< Record_t >
 Type alias for log::Logger which uses preset::Record_t as Record type. More...
 
using sl::log::preset::ISink_t = ISink< Record_t >
 Type alias for log::ISink which uses preset::Record_t as Record type. More...
 
using sl::log::preset::BasicSink_t = BasicSink< Record_t >
 Type alias for log::BasicSink which uses preset::Record_t as Record type. More...
 
using sl::log::preset::OStreamSink_t = OStreamSink< Record_t >
 Type alias for log::OStreamSink which uses preset::Record_t as Record type. More...
 
using sl::log::preset::FileSink_t = FileSink< Record_t >
 Type alias for log::FileSink which uses preset::Record_t as Record type. More...
 
using sl::log::preset::ConsoleSink_t = ConsoleSink< Record_t >
 Type alias for log::ConsoleSink which uses preset::Record_t as Record type. More...
 

Enumerations

enum class  sl::log::preset::SevLvl {
  sl::log::preset::debug , sl::log::preset::info , sl::log::preset::hint , sl::log::preset::warning ,
  sl::log::preset::error , sl::log::preset::fatal
}
 A simple severity level enum type. More...
 

Functions

std::ostream & sl::log::preset::operator<< (std::ostream &out, SevLvl lvl)
 Operator << overload for SeverityLevel type. More...
 

Detailed Description

Each type serves as a default solution for simple logging, but users are free to dig deeper and define their custom types and rules. In this namespace are mainly type aliases which are a good starting point for getting used to the library.

Typedef Documentation

◆ BasicSink_t

Type alias for log::BasicSink which uses preset::Record_t as Record type.

◆ ConsoleSink_t

◆ Core_t

Type alias for log::Core which uses preset::Record_t as Record type.

Examples
CustomRecordType/main.cpp, and CustomizeBaseRecord/main.cpp.

◆ FileSink_t

◆ ISink_t

Type alias for log::ISink which uses preset::Record_t as Record type.

◆ Logger_t

◆ OStreamSink_t

Type alias for log::OStreamSink which uses preset::Record_t as Record type.

◆ Record_t

using sl::log::preset::Record_t = typedef BaseRecord<SevLvl, std::string>

Prepared Record type.

Record_t is an type alias for the BaseRecord and uses SeverityLevel as severity level type and std::string as channel identifier.

Examples
CustomizeBaseRecord/main.cpp.

Enumeration Type Documentation

◆ SevLvl

A simple severity level enum type.

Each value reflects a distinguishable severity level on which formatter and filter of Sink objects can react.

Enumerator
debug 
info 
hint 
warning 
error 
fatal 
Examples
CustomRecordType/main.cpp, and CustomizeBaseRecord/main.cpp.

Function Documentation

◆ operator<<()

std::ostream& sl::log::preset::operator<< ( std::ostream &  out,
SevLvl  lvl 
)
inline

Operator << overload for SeverityLevel type.

Parameters
outthe stream object
lvlthe severity level
Returns
Returns the parameter out as reference