Flag for Logger Config yaml file name
Removed yaml filename from env.go and added its flag to scheduler.go
This commit is contained in:
parent
ef6d154d06
commit
24dbbb208f
5 changed files with 8 additions and 9 deletions
elektronLogging
|
@ -14,10 +14,10 @@ var formatter ElektronFormatter
|
|||
var ElektronLog *LoggerImpl
|
||||
var logDir logDirectory
|
||||
|
||||
func BuildLogger(prefix string) {
|
||||
func BuildLogger(prefix string, logConfigFilename string) {
|
||||
|
||||
// read configuration from yaml
|
||||
config.GetConfig()
|
||||
config.GetConfig(logConfigFilename)
|
||||
|
||||
// create the log directory
|
||||
startTime := time.Now()
|
||||
|
|
Reference in a new issue