Freundlich's C++ toolkit
No Matches
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
fcppt::log Namespace Reference

Logging classes and functions. More...


namespace  format
 Functions and classes related to log formatting.


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...


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.


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...


FCPPT_LOG_DETAIL_SYMBOL fcppt::log::level_stream_array default_level_streams ()
 Constructs the default level streams.
FCPPT_LOG_DETAIL_SYMBOL fcppt::io::ostreamdefault_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::istreamoperator>> (fcppt::io::istream &, fcppt::log::level &)
 Reads a level from a stream.
FCPPT_LOG_DETAIL_SYMBOL fcppt::io::ostreamoperator<< (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 &&)


FCPPT_LOG_DETAIL_SYMBOL fcppt::log::detail::output_helper const out
 Trampoline to create logger output.

Detailed Description

Logging classes and functions.

Typedef Documentation

◆ const_level_stream_array_reference

◆ context_reference

◆ object_reference

Function Documentation

◆ default_stream()

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.

◆ operator/()

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.

◆ parameters_no_function()

FCPPT_LOG_DETAIL_SYMBOL fcppt::log::parameters fcppt::log::parameters_no_function ( fcppt::log::name &&  )