Documentation ¶
Index ¶
- func Adjust(logger *zap.Logger, options ...zap.Option) *zap.Logger
- func Debug(msg string, fields ...zap.Field)
- func Debugf(msg string, fields ...interface{})
- func Error(msg string, fields ...zap.Field)
- func Errorf(msg string, fields ...interface{})
- func Fatal(msg string, fields ...zap.Field)
- func Fatalf(msg string, fields ...interface{})
- func GetGlobalLogger() *zap.Logger
- func GetLogger(options ...zap.Option) *zap.Logger
- func GetLoggerWithOptions(level zapcore.LevelEnabler, encoder zapcore.Encoder, ...) *zap.Logger
- func GetPanicLogger(options ...zap.Option) *zap.Logger
- func GetPanicLoggerWithLevel(level zapcore.Level, options ...zap.Option) *zap.Logger
- func Info(msg string, fields ...zap.Field)
- func Infof(msg string, fields ...interface{})
- func Panic(msg string, fields ...zap.Field)
- func Panicf(msg string, fields ...interface{})
- func SetupMOLogger(conf *LogConfig)
- func Warn(msg string, fields ...zap.Field)
- func Warnf(msg string, fields ...interface{})
- type GoettyLogger
- type LogConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGlobalLogger ¶
GetGlobalLogger returns the current global zap Logger.
func GetLoggerWithOptions ¶ added in v0.5.0
func GetLoggerWithOptions(level zapcore.LevelEnabler, encoder zapcore.Encoder, syncer zapcore.WriteSyncer, options ...zap.Option) *zap.Logger
GetLoggerWithOptions get default zap logger
func GetPanicLogger ¶ added in v0.5.0
GetPanicLogger returns a zap logger which will panic on Fatal(). The returned zap logger should only be used in tests.
func GetPanicLoggerWithLevel ¶ added in v0.5.0
GetPanicLoggerWithLevel returns a zap logger which will panic on Fatal(). The returned zap logger should only be used in tests.
func SetupMOLogger ¶
func SetupMOLogger(conf *LogConfig)
SetupMOLogger sets up the global logger for MO Server.
Types ¶
type GoettyLogger ¶
type GoettyLogger struct{}
func (*GoettyLogger) Debugf ¶
func (l *GoettyLogger) Debugf(msg string, fields ...interface{})
func (*GoettyLogger) Errorf ¶
func (l *GoettyLogger) Errorf(msg string, fields ...interface{})
func (*GoettyLogger) Fatalf ¶
func (l *GoettyLogger) Fatalf(msg string, fields ...interface{})
func (*GoettyLogger) Infof ¶
func (l *GoettyLogger) Infof(msg string, fields ...interface{})
Click to show internal directories.
Click to hide internal directories.