Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
logging.h File Reference

Declarations for logging related functions. More...

#include <boost/log/common.hpp>
#include <boost/log/sinks.hpp>
#include "config.h"
#include "stat_trackers.h"
Include dependency graph for logging.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  logging::deinit_t
class  logging::min_max_avg_periodic_logger< T >
 A helper class for tracking and logging numerical values across a period of time. More...
class  logging::time_delta_periodic_logger
 A helper class for tracking and logging short time intervals across a period of time. More...

Namespaces

namespace  logging
 Handles the initialization and deinitialization of the logging system.

Typedefs

using text_sink = boost::log::sinks::asynchronous_sink<boost::log::sinks::text_ostream_backend>

Functions

void logging::deinit ()
 Deinitialize the logging system.
void logging::formatter (const boost::log::record_view &view, boost::log::formatting_ostream &os)
std::unique_ptr< deinit_t > logging::init (int min_log_level, const std::string &log_file)
 Initialize the logging system.
void logging::setup_av_logging (int min_log_level)
 Setup AV logging.
void logging::setup_libdisplaydevice_logging (int min_log_level)
 Setup logging for libdisplaydevice.
void logging::log_flush ()
 Flush the log.
void logging::print_help (const char *name)
 Print help to stdout.
std::string logging::bracket (const std::string &input)
 Enclose string in square brackets.
std::wstring logging::bracket (const std::wstring &input)
 Enclose string in square brackets.

Variables

boost::log::sources::severity_logger< int > verbose
boost::log::sources::severity_logger< int > debug
boost::log::sources::severity_logger< int > info
boost::log::sources::severity_logger< int > warning
boost::log::sources::severity_logger< int > error
boost::log::sources::severity_logger< int > fatal

Detailed Description

Declarations for logging related functions.

Definition in file logging.h.

Typedef Documentation

◆ text_sink

using text_sink = boost::log::sinks::asynchronous_sink<boost::log::sinks::text_ostream_backend>

Definition at line 11 of file logging.h.