ORE Studio 0.0.4
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations | Functions
ores::utility::log Namespace Reference

Implements logging for ORE Studio. More...

Classes

class  lifecycle_manager
 Manages the starting and stopping of logging for an application. More...
 
class  logging_configuration
 Centralized manager for logging configuration parsing. More...
 
class  logging_exception
 An exception has occurred during logging. More...
 
struct  logging_options
 Options related to logging. More...
 
class  logging_options_validator
 Checks the validity of the supplied logging options. More...
 

Typedefs

using logger_t = boost::log::sources::severity_channel_logger_mt< severity_level, std::string_view >
 

Enumerations

enum  severity_level {
  trace , debug , info , warn ,
  error
}
 Logging severity. More...
 

Functions

std::ostream & operator<< (std::ostream &s, const logging_options &v)
 
logger_t make_logger (std::string_view component_name)
 
severity_level to_severity_level (const std::string &s)
 Converts the supplied string into the severity level, if valid.
 
template<typename CharT , typename TraitsT >
std::basic_ostream< CharT, TraitsT > & operator<< (std::basic_ostream< CharT, TraitsT > &stream, severity_level level)
 Inserter for severity level enum.
 

Detailed Description

Implements logging for ORE Studio.

Enumeration Type Documentation

◆ severity_level

Logging severity.

@warn This must be a C++-03 enum due to the boost::log internals. It also makes logging easier otherwise we'd have to always prefix "severity_level::".

Function Documentation

◆ to_severity_level()

severity_level to_severity_level ( const std::string &  s)

Converts the supplied string into the severity level, if valid.

Cannot use magic enums as we can't use enum classes.

Here is the caller graph for this function:

◆ operator<<()

template<typename CharT , typename TraitsT >
std::basic_ostream< CharT, TraitsT > & operator<< ( std::basic_ostream< CharT, TraitsT > &  stream,
severity_level  level 
)

Inserter for severity level enum.

Required for interoperability with boost log.