Documentation ¶
Index ¶
- func ConsoleGlobalLogger()
- func Debug(args ...interface{})
- func Debugf(t string, args ...interface{})
- func Debugw(msg string, keysAndValues ...interface{})
- func Error(args ...interface{})
- func Errorf(t string, args ...interface{})
- func Errorw(msg string, keysAndValues ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(t string, args ...interface{})
- func Faterw(msg string, keysAndValues ...interface{})
- func Info(args ...interface{})
- func Infof(t string, args ...interface{})
- func Infow(msg string, keysAndValues ...interface{})
- func JsonGlobalLogger()
- func SetGlobalHasher(h Hasher)
- func Warn(args ...interface{})
- func Warnf(t string, args ...interface{})
- func Warnw(msg string, keysAndValues ...interface{})
- type Hasher
- type Logger
- func (l Logger) Debug(args ...interface{})
- func (l Logger) Debugf(t string, args ...interface{})
- func (l Logger) Debugw(msg string, keysAndValues ...interface{})
- func (l Logger) Error(args ...interface{})
- func (l Logger) Errorf(t string, args ...interface{})
- func (l Logger) Errorw(msg string, keysAndValues ...interface{})
- func (l Logger) Fatal(args ...interface{})
- func (l Logger) Fatalf(t string, args ...interface{})
- func (l Logger) Faterw(msg string, keysAndValues ...interface{})
- func (l Logger) Info(args ...interface{})
- func (l Logger) Infof(t string, args ...interface{})
- func (l Logger) Infow(msg string, keysAndValues ...interface{})
- func (l Logger) Kind(value interface{}) Logger
- func (l Logger) Warn(args ...interface{})
- func (l Logger) Warnf(t string, args ...interface{})
- func (l Logger) Warnw(msg string, keysAndValues ...interface{})
- func (l Logger) With(key string, value interface{}) Logger
- func (l Logger) WithHash(key string, value interface{}) Logger
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConsoleGlobalLogger ¶
func ConsoleGlobalLogger()
func JsonGlobalLogger ¶
func JsonGlobalLogger()
func SetGlobalHasher ¶
func SetGlobalHasher(h Hasher)
Types ¶
type Logger ¶
type Logger struct { *zap.SugaredLogger // contains filtered or unexported fields }
logger delegates all calls to the underlying zap.Logger
func AdvanceWithOptions ¶
func WithOptions ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func AddCallerSkip ¶
func FormatConsole ¶
func FormatConsole() Option
func FormatJson ¶
func FormatJson() Option
func ReplaceGlobals ¶
func ReplaceGlobals() Option
func WithConfig ¶
Click to show internal directories.
Click to hide internal directories.