Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultLevel = zapcore.InfoLevel DefaultTimeLayout = time.RFC3339 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger interface { Debug(v ...interface{}) Debugf(format string, v ...interface{}) Info(v ...interface{}) Infof(format string, v ...interface{}) Warn(v ...interface{}) Warnf(format string, v ...interface{}) Error(v ...interface{}) Errorf(format string, v ...interface{}) Fatal(v ...interface{}) Fatalf(format string, v ...interface{}) Panic(v ...interface{}) Panicf(format string, v ...interface{}) }
type Option ¶
type Option func(*option)
func WithDisableConsole ¶
func WithDisableConsole() Option
func WithDriver ¶
func WithFilePath ¶
func WithFileRotation ¶
func WithTimeLayout ¶
Click to show internal directories.
Click to hide internal directories.