4.6.0
Freundlich's C++ toolkit
|
Logging classes and functions. More...
Classes | |
class | context |
A logger context manages log levels. More... | |
class | level_stream |
The stream for a logger level. More... | |
class | location |
A location of a logger in a context. More... | |
class | object |
The main log class. More... | |
class | standard_level_stream |
Logs to an fcppt::io::ostream. More... | |
Typedefs | |
using | const_level_stream_array_reference = fcppt::reference<fcppt::log::level_stream_array const> |
using | context_reference = fcppt::reference<fcppt::log::context> |
using | level_stream_array |
An array used to save log level streams for every level. | |
using | location_string_vector = std::vector<fcppt::string> |
using | name = fcppt::strong_typedef< fcppt::string ,_> |
The name of a logger. | |
using | object_reference = fcppt::reference<fcppt::log::object> |
using | optional_level = fcppt::optional::object<fcppt::log::level> |
An optional level. | |
using | standard_level_stream_array |
The array of standard level streams. | |
Enumerations | |
enum class | level : std::uint8_t { level::verbose , level::debug , level::info , level::warning , level::error , level::fatal } |
An enumeration for the available log levels. More... | |
Functions | |
FCPPT_LOG_DETAIL_SYMBOL fcppt::log::level_stream_array | default_level_streams () |
Constructs the default level streams. | |
FCPPT_LOG_DETAIL_SYMBOL fcppt::io::ostream & | default_stream (fcppt::log::level) |
The default stream to use a log level. | |
FCPPT_LOG_DETAIL_SYMBOL fcppt::log::optional_level | level_from_string (fcppt::string_view name) |
Converts the name of a log level to its enum. | |
FCPPT_LOG_DETAIL_SYMBOL fcppt::io::istream & | operator>> (fcppt::io::istream &, fcppt::log::level &) |
Reads a level from a stream. | |
FCPPT_LOG_DETAIL_SYMBOL fcppt::io::ostream & | operator<< (fcppt::io::ostream &, fcppt::log::level) |
Outputs a level to a stream. | |
FCPPT_LOG_DETAIL_SYMBOL std::string_view | level_to_string (fcppt::log::level) |
Converts a log level to its string representation. | |
FCPPT_LOG_DETAIL_SYMBOL fcppt::log::location | operator/ (fcppt::log::location location, fcppt::log::name element) |
Forms a new location by appending a name. | |
Variables | |
FCPPT_LOG_DETAIL_SYMBOL fcppt::log::detail::output_helper const | out |
Trampoline to create logger output. | |
Logging classes and functions.
using fcppt::log::const_level_stream_array_reference = fcppt::reference<fcppt::log::level_stream_array const> |
FCPPT_LOG_DETAIL_SYMBOL fcppt::io::ostream & fcppt::log::default_stream | ( | fcppt::log::level | ) |
The default stream to use a log level.
Log levels verbose
through warning
log to fcppt::io::clog, and log levels error
and fatal
log to fcppt::io::cerr.
FCPPT_LOG_DETAIL_SYMBOL fcppt::log::location fcppt::log::operator/ | ( | fcppt::log::location | location, |
fcppt::log::name | element ) |
Forms a new location by appending a name.
Forms a new location from location and name.