Documentation
¶
Index ¶
- type Logger
- func (l *Logger) Fatal(msg string, args ...any)
- func (l *Logger) FatalContext(ctx context.Context, msg string, args ...any)
- func (l *Logger) Notice(msg string, args ...any)
- func (l *Logger) NoticeContext(ctx context.Context, msg string, args ...any)
- func (l *Logger) Panic(msg string, args ...any)
- func (l *Logger) PanicContext(ctx context.Context, msg string, args ...any)
- func (l *Logger) Trace(msg string, args ...any)
- func (l *Logger) TraceContext(ctx context.Context, msg string, args ...any)
- func (l *Logger) With(args ...any) *Logger
- func (l *Logger) WithColor(colorOn bool) *Logger
- func (l *Logger) WithColorMode(cm common.ColorMode) *Logger
- func (l *Logger) WithGroup(name string) *Logger
- func (l *Logger) WithHandlers(handlers []slog.Handler) *Logger
- func (l *Logger) WithLevel(level slog.Level) *Logger
- func (l *Logger) WithLeveler(level slog.Leveler) *Logger
- func (l *Logger) WithReplaceAttr(replaceAttr common.ReplaceAttr) *Logger
- func (l *Logger) WithSymbolSet(symbolSet common.SymbolSet) *Logger
- func (l *Logger) WithTimeFormat(t string) *Logger
- func (l *Logger) WithTpl(tpl ...common.Tpl) *Logger
- func (l *Logger) WithUptimeFormat(uptimeFmt common.UptimeFormat) *Logger
- func (l *Logger) WithWriter(w io.Writer) *Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
func (*Logger) FatalContext ¶
func (*Logger) NoticeContext ¶
func (*Logger) PanicContext ¶
func (*Logger) TraceContext ¶
func (*Logger) WithReplaceAttr ¶ added in v0.4.0
func (l *Logger) WithReplaceAttr(replaceAttr common.ReplaceAttr) *Logger
func (*Logger) WithSymbolSet ¶ added in v0.2.0
func (*Logger) WithTimeFormat ¶
func (*Logger) WithUptimeFormat ¶ added in v0.2.0
func (l *Logger) WithUptimeFormat(uptimeFmt common.UptimeFormat) *Logger
Click to show internal directories.
Click to hide internal directories.