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

Logging classes and functions. More...

Namespaces

 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

typedef fcppt::reference< fcppt::log::level_stream_array const > const_level_stream_array_ref
 
typedef fcppt::enum_::array< fcppt::log::level, fcppt::log::level_streamlevel_stream_array
 An array used to save log level streams for every level. More...
 
typedef fcppt::strong_typedef< fcppt::string,_ > name
 The name of a logger. More...
 
typedef fcppt::optional::object< fcppt::log::leveloptional_level
 An optional level. More...
 

Enumerations

enum  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. More...
 
FCPPT_LOG_DETAIL_SYMBOL fcppt::io::ostreamdefault_stream (fcppt::log::level)
 The default stream to use a log level. More...
 
FCPPT_LOG_DETAIL_SYMBOL fcppt::log::optional_level level_from_string (fcppt::string const &name)
 Converts the name of a log level to its enum. More...
 
FCPPT_LOG_DETAIL_SYMBOL fcppt::io::istreamoperator>> (fcppt::io::istream &, fcppt::log::level &)
 Reads a level from a stream. More...
 
FCPPT_LOG_DETAIL_SYMBOL fcppt::io::ostreamoperator<< (fcppt::io::ostream &, fcppt::log::level)
 Outputs a level to a stream. More...
 
FCPPT_LOG_DETAIL_SYMBOL fcppt::string level_to_string (fcppt::log::level)
 Converts a log level to its string representation. More...
 
FCPPT_LOG_DETAIL_SYMBOL fcppt::log::location operator/ (fcppt::log::location location, fcppt::log::name element)
 Forms a new location by appending a name. More...
 

Variables

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

Detailed Description

Logging classes and functions.

Typedef Documentation

◆ const_level_stream_array_ref

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.