4.4.0
|
|
Freundlich's C++ toolkit |
Logging classes and functions. More...
Namespaces | |
namespace | format |
Functions and classes related to log formatting. | |
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 | parameters |
The parameters class for an fcppt::log::object. 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 = fcppt::enum_::array< fcppt::log::level, fcppt::log::level_stream > |
An array used to save log level streams for every level. | |
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. | |
Enumerations | |
enum class | level { level::verbose , level::debug , level::info , level::warning , level::error , level::fatal , level::fcppt_maximum = 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. | |
FCPPT_LOG_DETAIL_SYMBOL fcppt::log::parameters | parameters_no_function (fcppt::log::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 = typedef fcppt::reference<fcppt::log::level_stream_array const> |
using fcppt::log::context_reference = typedef fcppt::reference<fcppt::log::context> |
using fcppt::log::object_reference = typedef fcppt::reference<fcppt::log::object> |
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.
FCPPT_LOG_DETAIL_SYMBOL fcppt::log::parameters fcppt::log::parameters_no_function | ( | fcppt::log::name && | ) |