feat(logging): make log size and log backups configurable (#657)

feat(logging): make log size and backups configurable
This commit is contained in:
ze0s 2023-01-17 21:35:31 +01:00 committed by GitHub
parent 9e0edc577f
commit 0af95e2b44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 38 additions and 2 deletions

View file

@ -56,6 +56,22 @@ port = 7474
#
logLevel = "DEBUG"
# Log Max Size
#
# Default: 50
#
# Max log size in megabytes
#
#logMaxSize = 50
# Log Max Backups
#
# Default: 3
#
# Max amount of old log files
#
#logMaxBackups = 3
# Session secret
#
sessionSecret = "{{ .sessionSecret }}"
@ -158,6 +174,8 @@ func (c *AppConfig) defaults() {
Port: 7474,
LogLevel: "TRACE",
LogPath: "",
LogMaxSize: 50,
LogMaxBackups: 3,
BaseURL: "/",
SessionSecret: "secret-session-key",
CustomDefinitions: "",