Filter messages before printing them.
More...
#include <logger.hpp>
|
virtual | ~filter ()=default |
|
auto | pre (std::string_view category, std::string_view component, std::string_view message) const -> std::string |
|
virtual auto | pre_debug (std::string_view category, std::string_view component, std::string_view message) const -> std::string |
|
virtual auto | pre_info (std::string_view category, std::string_view component, std::string_view message) const -> std::string |
|
virtual auto | pre_warning (std::string_view category, std::string_view component, std::string_view message) const -> std::string |
|
Filter messages before printing them.
◆ ~filter()
virtual irccd::daemon::logger::filter::~filter |
( |
| ) |
|
|
virtualdefault |
Virtual destructor defaulted.
◆ pre()
auto irccd::daemon::logger::filter::pre |
( |
std::string_view |
category, |
|
|
std::string_view |
component, |
|
|
std::string_view |
message |
|
) |
| const -> std::string |
Default function called for each virtual ones.
- Parameters
-
category | the category subsystem |
component | the optional component |
message | the message |
- Returns
- default formatted message
◆ pre_debug()
virtual auto irccd::daemon::logger::filter::pre_debug |
( |
std::string_view |
category, |
|
|
std::string_view |
component, |
|
|
std::string_view |
message |
|
) |
| const -> std::string |
|
virtual |
Update the debug message.
- Parameters
-
category | the category subsystem |
component | the optional component |
message | the message |
- Returns
- the message
◆ pre_info()
virtual auto irccd::daemon::logger::filter::pre_info |
( |
std::string_view |
category, |
|
|
std::string_view |
component, |
|
|
std::string_view |
message |
|
) |
| const -> std::string |
|
virtual |
Update the information message.
- Parameters
-
category | the category subsystem |
component | the optional component |
message | the message |
- Returns
- the updated message
◆ pre_warning()
virtual auto irccd::daemon::logger::filter::pre_warning |
( |
std::string_view |
category, |
|
|
std::string_view |
component, |
|
|
std::string_view |
message |
|
) |
| const -> std::string |
|
virtual |
Update the warning message.
- Parameters
-
category | the category subsystem |
component | the optional component |
message | the message |
- Returns
- the updated message
The documentation for this class was generated from the following file: