Documentation ¶
Index ¶
- func DPanic(msg string, filed ...zap.Field)
- func Debug(msg string, filed ...zap.Field)
- func Error(msg string, filed ...zap.Field)
- func Fatal(msg string, filed ...zap.Field)
- func Info(msg string, filed ...zap.Field)
- func NewLogger(opt ...logOptionsFunc) (*zap.Logger, error)
- func Panic(msg string, filed ...zap.Field)
- func SDPanic(tpl string, args ...interface{})
- func SDebug(tpl string, args ...interface{})
- func SError(tpl string, args ...interface{})
- func SFatal(tpl string, args ...interface{})
- func SInfo(tpl string, args ...interface{})
- func SPanic(tpl string, args ...interface{})
- func SWarn(tpl string, args ...interface{})
- func Sync()
- func Warn(msg string, filed ...zap.Field)
- func WithEncodingConsole(v bool) logOptionsFunc
- func WithMaxAge(v int) logOptionsFunc
- func WithMaxBackups(v int) logOptionsFunc
- func WithMaxSize(v int) logOptionsFunc
- func WithPath(v string) logOptionsFunc
- func WithStdout(v bool) logOptionsFunc
- type LogOptions
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithEncodingConsole ¶
func WithEncodingConsole(v bool) logOptionsFunc
func WithMaxAge ¶
func WithMaxAge(v int) logOptionsFunc
func WithMaxBackups ¶
func WithMaxBackups(v int) logOptionsFunc
func WithMaxSize ¶
func WithMaxSize(v int) logOptionsFunc
func WithStdout ¶
func WithStdout(v bool) logOptionsFunc
Types ¶
type LogOptions ¶
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{}) }
func NewZapLogger ¶
Click to show internal directories.
Click to hide internal directories.