diff options
| author | Stefan Boberg <[email protected]> | 2023-12-06 08:44:46 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-12-06 08:44:46 +0100 |
| commit | 94fc3302c898825d7bc460ad4504577e33f744d9 (patch) | |
| tree | 786ab5da6801dd5aabaca28f503c205af529363f /src/zencore/include | |
| parent | Use correct iterator index when looking up memcached payload in GatherReferen... (diff) | |
| download | zen-94fc3302c898825d7bc460ad4504577e33f744d9.tar.xz zen-94fc3302c898825d7bc460ad4504577e33f744d9.zip | |
logging configuration via command line options (#589)
with these changes it is possible to configure loggers on the command line. For instance:
`xmake run zenserver --log-trace=http_requests,http`
will configure the system so that the `http_request` and `http` loggers are set to TRACE level
Diffstat (limited to 'src/zencore/include')
| -rw-r--r-- | src/zencore/include/zencore/logging.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/zencore/include/zencore/logging.h b/src/zencore/include/zencore/logging.h index d14d1ab8d..8b76d754c 100644 --- a/src/zencore/include/zencore/logging.h +++ b/src/zencore/include/zencore/logging.h @@ -35,6 +35,10 @@ LoggerRef ErrorLog(); void SetErrorLog(std::string_view LoggerId); LoggerRef Get(std::string_view Name); +void ConfigureLogLevels(level::LogLevel Level, std::string_view Loggers); +void RefreshLogLevels(); +void RefreshLogLevels(level::LogLevel DefaultLevel); + struct LogCategory { inline LogCategory(std::string_view InCategory) : CategoryName(InCategory) {} |