refactor: Use interface for logger instead of private struct

This commit is contained in:
Felicitas Pojtinger
2022-01-01 23:12:32 +01:00
parent 9058942443
commit cfbb936954
4 changed files with 21 additions and 10 deletions

11
pkg/logging/structured.go Normal file
View File

@@ -0,0 +1,11 @@
package logging
import (
golog "github.com/fclairamb/go-log"
)
type StructuredLogger interface {
golog.Logger
Trace(event string, keyvals ...interface{})
}