From ea8f4961c6e4f94bf82e4c4cadbab4ec08824ae4 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Sun, 22 Feb 2015 22:03:39 +0100 Subject: [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 --- server.config.example/server.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'server.config.example/server.conf') 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 + -- cgit v1.2.3-55-g7522