irccd
3.0.3
|
Output to a files. More...
#include <logger.hpp>
Public Member Functions | |
file_sink (std::string normal, std::string errors) | |
![]() | |
sink () | |
virtual | ~sink ()=default |
auto | is_verbose () const noexcept -> bool |
void | set_verbose (bool mode) noexcept |
void | set_filter (filter &filter) noexcept |
auto | info (std::string_view category, std::string_view component) -> logger |
template<typename Loggable > | |
auto | info (const Loggable &loggable) -> logger |
auto | warning (std::string_view category, std::string_view component) -> logger |
template<typename Loggable > | |
auto | warning (const Loggable &loggable) -> logger |
auto | debug (std::string_view category, std::string_view component) -> logger |
template<typename Loggable > | |
auto | debug (const Loggable &loggable) -> logger |
Protected Member Functions | |
void | write_debug (const std::string &line) override |
void | write_info (const std::string &line) override |
void | write_warning (const std::string &line) override |
Output to a files.
irccd::daemon::logger::file_sink::file_sink | ( | std::string | normal, |
std::string | errors | ||
) |
Outputs to files.
normal | the path to the normal logs |
errors | the path to the errors logs |
|
overrideprotectedvirtual |
Write a debug message.
This function is called only if NDEBUG is not defined.
line | the data |
Implements irccd::daemon::logger::sink.
|
overrideprotectedvirtual |
Write a information message.
The function is called only if verbose is true.
line | the data |
Implements irccd::daemon::logger::sink.
|
overrideprotectedvirtual |
Write an error message.
This function is always called.
line | the data |
Implements irccd::daemon::logger::sink.