|
|
@ -11,7 +11,6 @@ import ( |
|
|
|
"path/filepath" |
|
|
|
"path/filepath" |
|
|
|
"runtime" |
|
|
|
"runtime" |
|
|
|
"strings" |
|
|
|
"strings" |
|
|
|
"sync" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"golang.org/x/sync/syncmap" |
|
|
|
"golang.org/x/sync/syncmap" |
|
|
|
) |
|
|
|
) |
|
|
@ -177,7 +176,6 @@ type logMsg struct { |
|
|
|
// it can contain several providers and log message into all providers.
|
|
|
|
// it can contain several providers and log message into all providers.
|
|
|
|
type Logger struct { |
|
|
|
type Logger struct { |
|
|
|
adapter string |
|
|
|
adapter string |
|
|
|
lock sync.Mutex |
|
|
|
|
|
|
|
level int |
|
|
|
level int |
|
|
|
msg chan *logMsg |
|
|
|
msg chan *logMsg |
|
|
|
outputs syncmap.Map |
|
|
|
outputs syncmap.Map |
|
|
|