blob: 7a72cfef3483d825e7605f477ebefee1a5bb4f81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
package config
// CommonConfig stores configuration keys shared by DTail server and client.
type CommonConfig struct {
// The SSH port number
SSHPort int
// Enable experimental features (mainly for dev purposes)
ExperimentalFeaturesEnable bool `json:",omitempty"`
// 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
}
// Create a new default configuration.
func newDefaultCommonConfig() *CommonConfig {
return &CommonConfig{
SSHPort: DefaultSSHPort,
ExperimentalFeaturesEnable: false,
LogDir: "log",
Logger: "stdout",
LogLevel: DefaultLogLevel,
LogRotation: "daily",
CacheDir: "cache",
}
}
|