Improve startup error reporting when ran as Windows service (#4291)

This commit is contained in:
Vlasta Hajek
2019-08-28 23:34:44 +02:00
committed by Daniel Nelson
parent 8c6ddcd7fa
commit 7ec54d4be9
8 changed files with 295 additions and 33 deletions

View File

@@ -146,7 +146,10 @@ type AgentConfig struct {
// Quiet is the option for running in quiet mode
Quiet bool `toml:"quiet"`
// Log file name, the empty string means to log to stderr.
// Log target - file, stderr, eventlog (Windows only). The empty string means to log to stderr.
LogTarget string `toml:"logtarget"`
// Log file name .
Logfile string `toml:"logfile"`
// The file will be rotated after the time interval specified. When set