|
Sunshine master
Self-hosted game stream host for Moonlight.
|
Definitions for logging related functions. More...
#include <fstream>#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 <boost/log/utility/exception_handler.hpp>#include "logging.h"#include <display_device/logging.h>#include <libavutil/log.h>Namespaces | |
| namespace | logging |
| Handles the initialization and deinitialization of the logging system. | |
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) |
| Format a Boost.Log record for Sunshine log output. | |
| std::unique_ptr< deinit_t > | logging::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 | |
| bl::sources::severity_logger< int > | debug {1} |
| Follow what is happening. | |
| bl::sources::severity_logger< int > | error {4} |
| Recoverable errors. | |
| bl::sources::severity_logger< int > | fatal {5} |
| Unrecoverable errors. | |
| bl::sources::severity_logger< int > | info {2} |
| Should be informed about. | |
| boost::shared_ptr< boost::log::sinks::asynchronous_sink< boost::log::sinks::text_ostream_backend > > | sink |
| Sink. | |
| bl::sources::severity_logger< int > | verbose {0} |
| Dominating output. | |
| bl::sources::severity_logger< int > | warning {3} |
| Strange events. | |
Definitions for logging related functions.
| bl::sources::severity_logger<int> debug {1} |
Follow what is happening.
Debug.
| bl::sources::severity_logger<int> error {4} |
Recoverable errors.
Error.
| bl::sources::severity_logger<int> fatal {5} |
Unrecoverable errors.
Fatal.
| bl::sources::severity_logger<int> info {2} |
Should be informed about.
Info.
| bl::sources::severity_logger<int> verbose {0} |
Dominating output.
Verbose.
| bl::sources::severity_logger<int> warning {3} |
Strange events.
Warning.