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

Definitions for logging related functions. More...

#include <fstream>
#include <filesystem>
#include <iomanip>
#include <iostream>
#include <boost/core/null_deleter.hpp>
#include <boost/format.hpp>
#include <boost/log/attributes/clock.hpp>
#include <boost/log/common.hpp>
#include <boost/log/expressions.hpp>
#include <boost/log/sinks.hpp>
#include <boost/log/sources/severity_logger.hpp>
#include "logging.h"
#include <display_device/logging.h>
#include <libavutil/log.h>
Include dependency graph for logging.cpp:

Go to the source code of this file.

Namespaces

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

Functions

bl::sources::severity_logger< int > verbose (0)
bl::sources::severity_logger< int > debug (1)
bl::sources::severity_logger< int > info (2)
bl::sources::severity_logger< int > warning (3)
bl::sources::severity_logger< int > error (4)
bl::sources::severity_logger< int > fatal (5)
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::shared_ptr< boost::log::sinks::asynchronous_sink< boost::log::sinks::text_ostream_backend > > sink

Detailed Description

Definitions for logging related functions.

Definition in file logging.cpp.

Variable Documentation

◆ sink

boost::shared_ptr<boost::log::sinks::asynchronous_sink<boost::log::sinks::text_ostream_backend> > sink

Definition at line 34 of file logging.cpp.