diff options
| author | Paul Buetow <pbuetow@mimecast.com> | 2021-10-21 21:28:49 +0300 |
|---|---|---|
| committer | Paul Buetow <pbuetow@mimecast.com> | 2021-10-21 21:28:49 +0300 |
| commit | f4207a55f71bfbcfdc532d5cdd3befaa3474a157 (patch) | |
| tree | ea5e4a2d2a67035f645bdee496ae55a52034178a /internal/config/common.go | |
| parent | d80d6070557e3a800e3a54967af9eced518f116b (diff) | |
| parent | 739205206d63bf42f4e843b39d04d4c8cd8207c3 (diff) | |
merge develop
Diffstat (limited to 'internal/config/common.go')
| -rw-r--r-- | internal/config/common.go | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/internal/config/common.go b/internal/config/common.go index c3e203e..7a72cfe 100644 --- a/internal/config/common.go +++ b/internal/config/common.go @@ -6,31 +6,27 @@ type CommonConfig struct { SSHPort int // Enable experimental features (mainly for dev purposes) ExperimentalFeaturesEnable bool `json:",omitempty"` - // Enable debug logging. Don't enable in production. - DebugEnable bool `json:",omitempty"` - // Enable trace logging. Don't enable in production. - TraceEnable bool `json:",omitempty"` - // The log strategy to use, one of - // stdout: only log to stdout (useful when used with systemd) - // daily: create a log file for every day - LogStrategy string - // The log directory + // LogDir defines the log directory. LogDir string + // Logger defines the name of the logger implementation. + Logger string + // LogLevel defines how much is logged. + LogLevel string `json:",omitempty"` + // LogRotation strategy to be used. + LogRotation string // The cache directory CacheDir string - // The temp directory - TmpDir string `json:",omitempty"` } // Create a new default configuration. func newDefaultCommonConfig() *CommonConfig { return &CommonConfig{ - SSHPort: 2222, - DebugEnable: false, - TraceEnable: false, + SSHPort: DefaultSSHPort, ExperimentalFeaturesEnable: false, LogDir: "log", + Logger: "stdout", + LogLevel: DefaultLogLevel, + LogRotation: "daily", CacheDir: "cache", - TmpDir: "/tmp", } } |
