Improve logging handling #57

Merged
konrad merged 14 commits from fix-logging-chaos into master 2019-01-25 11:40:54 +00:00
2 changed files with 34 additions and 5 deletions
Showing only changes of commit 6df1805f21 - Show all commits

View File

@ -30,8 +30,6 @@ database:
database: "vikunja"
# When using sqlite, this is the path where to store the data
Path: "./vikunja.db"
# Whether to show mysql queries or not. Useful for debugging.
showqueries: "false"
# Sets the max open connections to the database. Only used when using mysql.
openconnections: 100
@ -71,4 +69,20 @@ mailer:
# The length of the mail queue.
queuelength: 100
# The timeout in seconds after which the current open connection to the mailserver will be closed.
queuetimeout: 30
queuetimeout: 30
log:
# A folder where all the logfiles should go.
path: service.rootpath + "/logs"
# Whether to show any logging at all or none
enabled: true
# Where the error log should go. Possible values are stdout, file or off to disable error logging.
errors: "stdout"
# Where the normal log should go. Possible values are stdout, file or off to disable standard logging.
standard: "stdout"
# Whether or not to log database queries. Useful for debugging. Possible values are stdout, file or off to disable database logging.
database: "off"
# Whether to log http requests or not. Possible values are stdout, file or off to disable http logging.
http: "stdout"
# Echo has its own logging which usually is unnessecary, which is why it is disabled by default. Possible values are stdout, file or off to disable standard logging.
echo: "off"

View File

@ -63,8 +63,6 @@ database:
database: "vikunja"
# When using sqlite, this is the path where to store the data
Path: "./vikunja.db"
# Whether to show mysql queries or not. Useful for debugging.
showqueries: "false"
# Sets the max open connections to the database. Only used when using mysql.
openconnections: 100
@ -105,4 +103,21 @@ mailer:
queuelength: 100
# The timeout in seconds after which the current open connection to the mailserver will be closed.
queuetimeout: 30
log:
# A folder where all the logfiles should go.
path: service.rootpath + "/logs"
# Whether to show any logging at all or none
enabled: true
# Where the error log should go. Possible values are stdout, file or off to disable error logging.
errors: "stdout"
# Where the normal log should go. Possible values are stdout, file or off to disable standard logging.
standard: "stdout"
# Whether or not to log database queries. Useful for debugging. Possible values are stdout, file or off to disable database logging.
database: "off"
# Whether to log http requests or not. Possible values are stdout, file or off to disable http logging.
http: "stdout"
# Echo has its own logging which usually is unnessecary, which is why it is disabled by default. Possible values are stdout, file or off to disable standard logging.
echo: "off"
```