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/zenserver/config.h | |
| 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/zenserver/config.h')
| -rw-r--r-- | src/zenserver/config.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/zenserver/config.h b/src/zenserver/config.h index 8135bf8f0..11311f9d8 100644 --- a/src/zenserver/config.h +++ b/src/zenserver/config.h @@ -2,6 +2,7 @@ #pragma once +#include <zencore/logbase.h> #include <zencore/zencore.h> #include <zenhttp/httpserver.h> #include <filesystem> @@ -151,6 +152,7 @@ struct ZenServerOptions bool SentryAllowPII = false; // Allow personally identifiable information in sentry crash reports bool ObjectStoreEnabled = false; bool NoConsoleOutput = false; // Control default use of stdout for diagnostics + std::string Loggers[zen::logging::level::LogLevelCount]; #if ZEN_WITH_TRACE std::string TraceHost; // Host name or IP address to send trace data to std::string TraceFile; // Path of a file to write a trace |