-
Notifications
You must be signed in to change notification settings - Fork 130
/
default.go
31 lines (28 loc) · 1.07 KB
/
default.go
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
package config
import (
"github.com/LambdaTest/test-at-scale/pkg/global"
"github.com/spf13/viper"
)
func setNucleusDefaultConfig() {
viper.SetDefault("LogConfig.EnableConsole", true)
viper.SetDefault("LogConfig.ConsoleJSONFormat", false)
viper.SetDefault("LogConfig.ConsoleLevel", "debug")
viper.SetDefault("LogConfig.EnableFile", true)
viper.SetDefault("LogConfig.FileJSONFormat", true)
viper.SetDefault("LogConfig.FileLevel", "debug")
viper.SetDefault("LogConfig.FileLocation", global.HomeDir+"/nucleus.log")
viper.SetDefault("Env", "prod")
viper.SetDefault("Port", "9876")
viper.SetDefault("Verbose", false)
}
func setSynapseDefaultConfig() {
viper.SetDefault("LogConfig.EnableConsole", true)
viper.SetDefault("LogConfig.ConsoleJSONFormat", false)
viper.SetDefault("LogConfig.ConsoleLevel", "info")
viper.SetDefault("LogConfig.EnableFile", true)
viper.SetDefault("LogConfig.FileJSONFormat", true)
viper.SetDefault("LogConfig.FileLevel", "debug")
viper.SetDefault("LogConfig.FileLocation", "./mould.log")
viper.SetDefault("Env", "prod")
viper.SetDefault("Verbose", false)
}