Simple-Log
alpha-v0.7
|
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... | |
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.
using sl::log::preset::BasicSink_t = typedef BasicSink<Record_t> |
Type alias for log::BasicSink which uses preset::Record_t as Record type.
using sl::log::preset::ConsoleSink_t = typedef ConsoleSink<Record_t> |
Type alias for log::ConsoleSink which uses preset::Record_t as Record type.
using sl::log::preset::Core_t = typedef Core<Record_t> |
Type alias for log::Core which uses preset::Record_t as Record type.
using sl::log::preset::FileSink_t = typedef FileSink<Record_t> |
Type alias for log::FileSink which uses preset::Record_t as Record type.
using sl::log::preset::ISink_t = typedef ISink<Record_t> |
Type alias for log::ISink which uses preset::Record_t as Record type.
using sl::log::preset::Logger_t = typedef BaseLogger<Record_t> |
Type alias for log::Logger which uses preset::Record_t as Record type.
using sl::log::preset::OStreamSink_t = typedef OStreamSink<Record_t> |
Type alias for log::OStreamSink which uses preset::Record_t as Record type.
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.
|
strong |
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 |
|
inline |
Operator << overload for SeverityLevel type.
out | the stream object |
lvl | the severity level |