|
|
@ -23,7 +23,7 @@ type DefaultLogger struct {
|
|
|
|
Components []string
|
|
|
|
Components []string
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var log DefaultLogger = DefaultLogger{Loggers: map[string]zerolog.Logger{}, Components: []string{}}
|
|
|
|
var log DefaultLogger = DefaultLogger{Loggers: map[string]zerolog.Logger{}, Components: []string{"event"}}
|
|
|
|
|
|
|
|
|
|
|
|
func (logger * DefaultLogger) Init(components []string) error {
|
|
|
|
func (logger * DefaultLogger) Init(components []string) error {
|
|
|
|
logger.init_lock.Lock()
|
|
|
|
logger.init_lock.Lock()
|
|
|
|