Documentation ¶
Index ¶
- func Debug(message string)
- func Debugf(format string, v ...interface{})
- func Error(message string)
- func Errorf(format string, v ...interface{})
- func Fatal(message string)
- func Fatalf(format string, v ...interface{})
- func Info(message string)
- func Infof(format string, v ...interface{})
- func InitLogger(opts ...Option)
- func NewZap(level zapcore.Level, encoderFunc Encoder, w io.Writer, fields ...zap.Field) *zap.Logger
- func SetLoggerWriter(path string) io.Writer
- func Warn(message string)
- func Warnf(format string, v ...interface{})
- func With(ctx context.Context, opts ...Option) context.Context
- type Enable
- type Encoder
- type Level
- type LogPath
- type Logger
- func (l *Logger) Debug(message string)
- func (l *Logger) Debugf(format string, v ...interface{})
- func (l *Logger) Error(message string)
- func (l *Logger) Errorf(format string, v ...interface{})
- func (l *Logger) Fatal(message string)
- func (l *Logger) Fatalf(format string, v ...interface{})
- func (l *Logger) Info(message string)
- func (l *Logger) Infof(format string, v ...interface{})
- func (l *Logger) Warn(message string)
- func (l *Logger) Warnf(format string, v ...interface{})
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetLoggerWriter ¶
SetLoggerWriter return Logger writer
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func FromContext ¶
FromContext Gets the logger from context.
Click to show internal directories.
Click to hide internal directories.