const ( LevelTrace = -8 LevelDebug = -4 LevelInfo = 0 LevelWarn = 4 LevelError = 8 )
This section is empty.
NewContext returns a new Context that carries the specified logger.
Level maps to the logging levels in Logger.
type Logger interface { Enabled(ctx context.Context, level Level) bool Tracef(ctx context.Context, format string, v ...any) Debugf(ctx context.Context, format string, v ...any) Infof(ctx context.Context, format string, v ...any) Warnf(ctx context.Context, format string, v ...any) Errorf(ctx context.Context, format string, v ...any) }
FromContext returns the Logger value stored in ctx, if any.
Get returns either the logger configured on the context, or the global logger if one isn't defined.
type SimpleLogger struct { Level Level }
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4