Documentation
¶
Index ¶
- type ExportLogger
- func (l *ExportLogger) Debug(args ...interface{})
- func (l *ExportLogger) DebugContext(ctx context.Context, args ...interface{})
- func (l *ExportLogger) Debugf(format string, args ...interface{})
- func (l *ExportLogger) DebugfContext(ctx context.Context, format string, args ...interface{})
- func (l *ExportLogger) Error(args ...interface{})
- func (l *ExportLogger) ErrorContext(ctx context.Context, args ...interface{})
- func (l *ExportLogger) Errorf(format string, args ...interface{})
- func (l *ExportLogger) ErrorfContext(ctx context.Context, format string, args ...interface{})
- func (l *ExportLogger) Fatal(args ...interface{})
- func (l *ExportLogger) FatalContext(ctx context.Context, args ...interface{})
- func (l *ExportLogger) Fatalf(format string, args ...interface{})
- func (l *ExportLogger) FatalfContext(ctx context.Context, format string, args ...interface{})
- func (l *ExportLogger) Info(args ...interface{})
- func (l *ExportLogger) InfoContext(ctx context.Context, args ...interface{})
- func (l *ExportLogger) Infof(format string, args ...interface{})
- func (l *ExportLogger) InfofContext(ctx context.Context, format string, args ...interface{})
- func (l *ExportLogger) Print(level Level, args ...interface{})
- func (l *ExportLogger) PrintContext(ctx context.Context, level Level, args ...interface{})
- func (l *ExportLogger) Printf(level Level, format string, args ...interface{})
- func (l *ExportLogger) PrintfContext(ctx context.Context, level Level, format string, args ...interface{})
- func (l *ExportLogger) Warn(args ...interface{})
- func (l *ExportLogger) WarnContext(ctx context.Context, args ...interface{})
- func (l *ExportLogger) Warnf(format string, args ...interface{})
- func (l *ExportLogger) WarnfContext(ctx context.Context, format string, args ...interface{})
- type Level
- type Logger
- type SetTimeFuncInterface
- type SimpleLogger
- type TagLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExportLogger ¶
type ExportLogger struct {
// contains filtered or unexported fields
}
func (*ExportLogger) Debug ¶
func (l *ExportLogger) Debug(args ...interface{})
func (*ExportLogger) DebugContext ¶
func (l *ExportLogger) DebugContext(ctx context.Context, args ...interface{})
func (*ExportLogger) Debugf ¶
func (l *ExportLogger) Debugf(format string, args ...interface{})
func (*ExportLogger) DebugfContext ¶
func (l *ExportLogger) DebugfContext(ctx context.Context, format string, args ...interface{})
func (*ExportLogger) Error ¶
func (l *ExportLogger) Error(args ...interface{})
func (*ExportLogger) ErrorContext ¶
func (l *ExportLogger) ErrorContext(ctx context.Context, args ...interface{})
func (*ExportLogger) Errorf ¶
func (l *ExportLogger) Errorf(format string, args ...interface{})
func (*ExportLogger) ErrorfContext ¶
func (l *ExportLogger) ErrorfContext(ctx context.Context, format string, args ...interface{})
func (*ExportLogger) Fatal ¶
func (l *ExportLogger) Fatal(args ...interface{})
func (*ExportLogger) FatalContext ¶
func (l *ExportLogger) FatalContext(ctx context.Context, args ...interface{})
func (*ExportLogger) Fatalf ¶
func (l *ExportLogger) Fatalf(format string, args ...interface{})
func (*ExportLogger) FatalfContext ¶
func (l *ExportLogger) FatalfContext(ctx context.Context, format string, args ...interface{})
func (*ExportLogger) Info ¶
func (l *ExportLogger) Info(args ...interface{})
func (*ExportLogger) InfoContext ¶
func (l *ExportLogger) InfoContext(ctx context.Context, args ...interface{})
func (*ExportLogger) Infof ¶
func (l *ExportLogger) Infof(format string, args ...interface{})
func (*ExportLogger) InfofContext ¶
func (l *ExportLogger) InfofContext(ctx context.Context, format string, args ...interface{})
func (*ExportLogger) Print ¶
func (l *ExportLogger) Print(level Level, args ...interface{})
func (*ExportLogger) PrintContext ¶
func (l *ExportLogger) PrintContext(ctx context.Context, level Level, args ...interface{})
func (*ExportLogger) Printf ¶
func (l *ExportLogger) Printf(level Level, format string, args ...interface{})
func (*ExportLogger) PrintfContext ¶
func (l *ExportLogger) PrintfContext(ctx context.Context, level Level, format string, args ...interface{})
func (*ExportLogger) Warn ¶
func (l *ExportLogger) Warn(args ...interface{})
func (*ExportLogger) WarnContext ¶
func (l *ExportLogger) WarnContext(ctx context.Context, args ...interface{})
func (*ExportLogger) Warnf ¶
func (l *ExportLogger) Warnf(format string, args ...interface{})
func (*ExportLogger) WarnfContext ¶
func (l *ExportLogger) WarnfContext(ctx context.Context, format string, args ...interface{})
type Logger ¶
type Logger interface {
Print(level Level, args ...interface{})
Debug(args ...interface{})
Info(args ...interface{})
Warn(args ...interface{})
Error(args ...interface{})
Fatal(args ...interface{})
Printf(level Level, format string, args ...interface{})
Debugf(format string, args ...interface{})
Infof(format string, args ...interface{})
Warnf(format string, args ...interface{})
Errorf(format string, args ...interface{})
Fatalf(format string, args ...interface{})
PrintContext(ctx context.Context, level Level, args ...interface{})
DebugContext(ctx context.Context, args ...interface{})
InfoContext(ctx context.Context, args ...interface{})
WarnContext(ctx context.Context, args ...interface{})
ErrorContext(ctx context.Context, args ...interface{})
FatalContext(ctx context.Context, args ...interface{})
PrintfContext(ctx context.Context, level Level, format string, args ...interface{})
DebugfContext(ctx context.Context, format string, args ...interface{})
InfofContext(ctx context.Context, format string, args ...interface{})
WarnfContext(ctx context.Context, format string, args ...interface{})
ErrorfContext(ctx context.Context, format string, args ...interface{})
FatalfContext(ctx context.Context, format string, args ...interface{})
// contains filtered or unexported methods
}
var DefaultLogger Logger
type SetTimeFuncInterface ¶
type SimpleLogger ¶
type SimpleLogger struct {
Logger
// contains filtered or unexported fields
}
func (*SimpleLogger) SetTimeFunc ¶
func (l *SimpleLogger) SetTimeFunc(f func() time.Time)
Click to show internal directories.
Click to hide internal directories.