/** * @file src/logging.h * @brief Logging header file for the Sunshine application. */ // macros #pragma once // lib includes #include #include using text_sink = boost::log::sinks::asynchronous_sink; extern boost::log::sources::severity_logger verbose; extern boost::log::sources::severity_logger debug; extern boost::log::sources::severity_logger info; extern boost::log::sources::severity_logger warning; extern boost::log::sources::severity_logger error; extern boost::log::sources::severity_logger fatal; namespace logging { class deinit_t { public: ~deinit_t(); }; void deinit(); [[nodiscard]] std::unique_ptr init(int min_log_level, const std::string &log_file); void setup_av_logging(int min_log_level); void log_flush(); void print_help(const char *name); } // namespace logging