Documentation ¶
Index ¶
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Debugw(message string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Errorw(message string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Fatalw(message string, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Infow(message string, args ...interface{})
- func Init(opts *Options, fields ...logfields.Field)
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func Panicw(message string, args ...interface{})
- func Sync() error
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- func Warnw(message string, args ...interface{})
- func ZapLogger() *zap.Logger
- type FileOptions
- type Logger
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileOptions ¶
type Logger ¶
type Logger interface { Debug(args ...interface{}) Debugf(format string, args ...interface{}) Debugw(message string, args ...interface{}) Info(args ...interface{}) Infof(format string, args ...interface{}) Infow(message string, args ...interface{}) Warn(args ...interface{}) Warnf(format string, args ...interface{}) Warnw(message string, args ...interface{}) Error(args ...interface{}) Errorf(format string, args ...interface{}) Errorw(message string, args ...interface{}) Panic(args ...interface{}) Panicf(format string, args ...interface{}) Panicw(message string, args ...interface{}) Fatal(args ...interface{}) Fatalf(format string, args ...interface{}) Fatalw(message string, args ...interface{}) WithFields(keyValues map[string]interface{}) Logger }
Logger is a contract for the logger
func DisableCaller ¶
func DisableCaller() Logger
func WithFields ¶
type Options ¶
type Options struct { File *FileOptions `json:"file" yaml:"file"` ConsoleOutAsync bool `json:"console_out_async" yaml:"console_out_async"` Level string `json:"level" yaml:"level"` }
func NewOptions ¶
func NewOptions() *Options
Click to show internal directories.
Click to hide internal directories.