diff options
author | Simon Rettberg | 2015-02-22 22:03:39 +0100 |
---|---|---|
committer | Simon Rettberg | 2015-02-22 22:03:39 +0100 |
commit | ea8f4961c6e4f94bf82e4c4cadbab4ec08824ae4 (patch) | |
tree | 4371eacef27e477523d6e05ef29c741540a77e32 /server.config.example | |
parent | Get rid of unneccessary volatile (diff) | |
download | dnbd3-ea8f4961c6e4f94bf82e4c4cadbab4ec08824ae4.tar.gz dnbd3-ea8f4961c6e4f94bf82e4c4cadbab4ec08824ae4.tar.xz dnbd3-ea8f4961c6e4f94bf82e4c4cadbab4ec08824ae4.zip |
[SERVER] Overhauled logging
- Added message type parameter
- Log to file and stdout, no more logging in memory
- Added options to server.conf to filter which messages show up where
Diffstat (limited to 'server.config.example')
-rw-r--r-- | server.config.example/server.conf | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/server.config.example/server.conf b/server.config.example/server.conf index aeae8d5..3e5aa8c 100644 --- a/server.config.example/server.conf +++ b/server.config.example/server.conf @@ -14,3 +14,19 @@ uplinkTimeout=1250 ; timeout in ms for send/recv on connections to clients (using an image on this server) clientTimeout=15000 +; Log related config +[logging] +; log file path and name +file=./dnbd3.log +; which type of messages to log to file +fileMask=ERROR WARNING MINOR INFO DEBUG1 +; which to log to console (stdout) +consoleMask=ERROR WARNING MINOR INFO +; Valid types (warning: specifying invalid types will not yield an error!) +; ERROR Fatal error, server will terminate +; WARNING Major issue, something is broken but keep running +; MINOR Minor issue, more of a hickup than serious problem +; INFO Informational message +; DEBUG1 Debug information, used for medium verbosity +; DEBUG2 Used for debug messages that would show up a lot + |