Sunshine latest
Self-hosted game stream host for Moonlight.
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

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.
 
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_tlogging::init (int min_log_level, const std::string &log_file)
 Initialize the logging system.
 
void logging::log_flush ()
 Flush the log.
 
void logging::print_help (const char *name)
 Print help to stdout.
 
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.
 

Variables

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

Detailed Description

Declarations for logging related functions.