refactor: Use interface for logger instead of private struct
This commit is contained in:
11
pkg/logging/structured.go
Normal file
11
pkg/logging/structured.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package logging
|
||||
|
||||
import (
|
||||
golog "github.com/fclairamb/go-log"
|
||||
)
|
||||
|
||||
type StructuredLogger interface {
|
||||
golog.Logger
|
||||
|
||||
Trace(event string, keyvals ...interface{})
|
||||
}
|
||||
Reference in New Issue
Block a user