Commit bd8dcf04 authored by suyanlong's avatar suyanlong

fix log

parent 0a02084a
Pipeline #8673 failed with stages
......@@ -9,16 +9,16 @@ import (
"github.com/sirupsen/logrus"
)
type loggerContext struct {
type LoggerContext struct {
loggers map[string]logrus.FieldLogger
config *config
hooks []logrus.Hook
}
var loggerCtx = defaultLoggerContext()
var loggerCtx = DefaultLoggerContext()
func defaultLoggerContext() *loggerContext {
return &loggerContext{
func DefaultLoggerContext() *LoggerContext {
return &LoggerContext{
loggers: make(map[string]logrus.FieldLogger),
config: defaultConfig(),
hooks: make([]logrus.Hook, 0),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment