![]() |
Sunshine v2025.628.4510
Self-hosted game stream host for Moonlight.
|
Handles the initialization and deinitialization of the logging system. More...
Classes | |
| class | deinit_t |
| class | min_max_avg_periodic_logger |
| A helper class for tracking and logging numerical values across a period of time. More... | |
| class | time_delta_periodic_logger |
| A helper class for tracking and logging short time intervals across a period of time. More... | |
Functions | |
| std::string | bracket (const std::string &input) |
| Enclose string in square brackets. | |
| std::wstring | bracket (const std::wstring &input) |
| Enclose string in square brackets. | |
| void | deinit () |
| Deinitialize the logging system. | |
| void | formatter (const boost::log::record_view &view, boost::log::formatting_ostream &os) |
| std::unique_ptr< deinit_t > | init (int min_log_level, const std::string &log_file) |
| Initialize the logging system. | |
| void | log_flush () |
| Flush the log. | |
| void | print_help (const char *name) |
| Print help to stdout. | |
| void | setup_av_logging (int min_log_level) |
| Setup AV logging. | |
| void | setup_libdisplaydevice_logging (int min_log_level) |
| Setup logging for libdisplaydevice. | |
Handles the initialization and deinitialization of the logging system.
| std::string logging::bracket | ( | const std::string & | input | ) |
Enclose string in square brackets.
| input | Input string. |
| std::wstring logging::bracket | ( | const std::wstring & | input | ) |
Enclose string in square brackets.
| input | Input string. |
| void logging::deinit | ( | ) |
| std::unique_ptr< deinit_t > logging::init | ( | int | min_log_level, |
| const std::string & | log_file ) |
Initialize the logging system.
| min_log_level | The minimum log level to output. |
| log_file | The log file to write to. |
Examples
| void logging::log_flush | ( | ) |
| void logging::print_help | ( | const char * | name | ) |
| void logging::setup_av_logging | ( | int | min_log_level | ) |
Setup AV logging.
| min_log_level | The log level. |
| void logging::setup_libdisplaydevice_logging | ( | int | min_log_level | ) |
Setup logging for libdisplaydevice.
| min_log_level | The log level. |