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

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. More...
 
using name = fcppt::strong_typedef< fcppt::string,_ >
 The name of a logger. More...
 
using object_reference = fcppt::reference< fcppt::log::object >
 
using optional_level = fcppt::optional::object< fcppt::log::level >
 An optional level. More...
 

Enumerations

enum class  level {
  verbose , debug , info , warning ,
  error , fatal , 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_view 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 std::string_view 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...
 
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. More...
 

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 &&  )