Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TimeEncoder ¶
func TimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
Types ¶
type Configuration ¶
type Configuration struct {
LogLevel string
}
type LoggerInterface ¶
type LoggerInterface interface {
Info(args ...interface{})
InfoF(s string, args ...interface{})
Error(args ...interface{})
ErrorF(s string, args ...interface{})
Warn(args ...interface{})
WarnF(s string, args ...interface{})
}
func NewZapLogger ¶
func NewZapLogger(config Configuration) (LoggerInterface, error)
Click to show internal directories.
Click to hide internal directories.