OGLplus  (0.59.0) a C++ wrapper for rendering APIs

eagine::root_logger Class Reference

Class typically used as the per-application single root of logger hierarchy. More...

#include <eagine/logging/root_logger.hpp>

Public Member Functions

 root_logger (identifier logger_id, const program_args &args, const root_logger_options &opts)
 Constructor initializing from and id, program arguments and options.
 
 root_logger (const program_args &args, const root_logger_options &opts)
 Constructor initializing from program arguments and logger options.
 
 root_logger (const program_args &args)
 Constructor initializing the root logger from program arguments.
 
- Public Member Functions inherited from eagine::logger
template<log_event_severity severity>
auto log (log_event_severity_constant< severity > level, string_view format) noexcept -> entry_type< severity >
 Returns a log entry with the specified log_event_severity level. More...
 
auto log (log_event_severity severity, string_view format) noexcept
 Returns a log entry with the specified log_event_severity. More...
 
auto debug_stream () noexcept
 Returns a log entry stream for debug messages. More...
 
auto error_stream () noexcept
 Returns a log entry stream for error messages. More...
 
auto chart_sample (identifier series, float value) noexcept -> logger &
 Stores a new value in the specified chart data series.
 
template<typename T , typename U >
auto chart_sample (identifier series, const tagged_quantity< T, U > &qty) noexcept -> std::enable_if_t< std::is_convertible_v< T, float >, logger & >
 Stores a new value in the specified chart data series.
 
template<typename T , typename P >
auto chart_sample (identifier series, const valid_if< T, P > &opt_value) noexcept -> logger &
 Stores a new value in the specified chart data series.
 
auto fatal (string_view format) noexcept
 Returns a fatal error log entry. More...
 
auto error (string_view format) noexcept
 Returns an error log entry. More...
 
auto warning (string_view format) noexcept
 Returns a warning log entry. More...
 
auto info (string_view format) noexcept
 Returns an informational log entry. More...
 
auto stat (string_view format) noexcept
 Returns a statistic log entry. More...
 
auto debug (string_view format) noexcept
 Returns a debugging log entry. More...
 
auto trace (string_view format) noexcept
 Returns a tracing log entry. More...
 
auto backtrace (string_view format) noexcept
 Returns a backtracing log entry. More...
 
- Public Member Functions inherited from eagine::named_logging_object< logger_shared_backend_getter >
 named_logging_object (identifier id, logger_shared_backend_getter backend_getter) noexcept
 Constructor from identifier and backend_getter object. More...
 
 named_logging_object (identifier id, const named_logging_object &parent) noexcept
 Constructor from logger id and parent logging object.
 
 named_logging_object () noexcept=default
 Construct logging object without backend.
 
 named_logging_object (named_logging_object &&temp) noexcept
 Move constructor.
 
 named_logging_object (const named_logging_object &that) noexcept
 Copy constructor.
 
auto operator= (named_logging_object &&) noexcept -> named_logging_object &=default
 Move assignment operator.
 
auto operator= (const named_logging_object &) -> named_logging_object &=default
 Copy assignment operator.
 
constexpr auto object_id () const noexcept
 Returns the identifier of this logging object.
 
void object_description (string_view display_name, string_view description) noexcept
 Sets the human-readable name and description of this object.
 
auto log_fatal (string_view format) noexcept
 Create a log message entry for fatal error, with specified format. More...
 
auto log_error (string_view format) noexcept
 Create a log message entry for error, with specified format. More...
 
auto log_warning (string_view format) noexcept
 Create a log message entry for warning, with specified format. More...
 
auto log_info (string_view format) noexcept
 Create a log message entry for information, with specified format. More...
 
auto log_stat (string_view format) noexcept
 Create a log message entry for statistic, with specified format. More...
 
auto log_debug (string_view format) noexcept
 Create a log message entry for debugging, with specified format. More...
 
auto log_trace (string_view format) noexcept
 Create a log message entry for tracing, with specified format. More...
 
auto log_backtrace (string_view format) noexcept
 Create a log message entry for backtracing, with specified format. More...
 
auto log_debug_stream () noexcept
 Returns a log entry stream for debug messages. More...
 
auto log_error_stream () noexcept
 Returns a log entry stream for error messages. More...
 
auto log_chart_sample (identifier series, float value) noexcept -> named_logging_object &
 Stores a new value in the specified chart data series.
 
auto log_chart_sample (identifier series, const tagged_quantity< T, U > &qty) noexcept -> std::enable_if_t< std::is_convertible_v< T, float >, named_logging_object & >
 Stores a new value in the specified chart data series.
 
auto log_chart_sample (identifier series, const valid_if< T, P > &opt_value) noexcept -> named_logging_object &
 Stores a new value in the specified chart data series.
 
- Public Member Functions inherited from eagine::basic_logger< logger_shared_backend_getter >
auto backend () noexcept
 Returns a pointer to the backend of this logger object.
 
auto instance_id () const noexcept -> logger_instance_id
 Returns the unique id of this logger instance.
 

Additional Inherited Members

- Public Types inherited from eagine::named_logging_object< logger_shared_backend_getter >
using entry_type = std::conditional_t< is_log_level_enabled_v< severity >, log_entry, no_log_entry >
 The entry type for the specified log_event_severity. More...
 
- Public Types inherited from eagine::basic_logger< logger_shared_backend_getter >
using entry_type = std::conditional_t< is_log_level_enabled_v< severity >, log_entry, no_log_entry >
 The entry type for the specified log_event_severity. More...
 

Detailed Description

Class typically used as the per-application single root of logger hierarchy.


The documentation for this class was generated from the following file:

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).