This section is empty.
Variables ¶This section is empty.
Functions ¶This section is empty.
Types ¶ type Classification ¶Classification is the type of the log entry's classification name.
Set of standard classifications that can be used by clients and middleware
type ContextLogger ¶ContextLogger is an optional interface a Logger implementation may expose that provides the ability to create context aware log entries.
type Logger ¶type Logger interface { // Logf is expected to support the standard fmt package "verbs". Logf(classification Classification, format string, v ...interface{}) }
Logger is an interface for logging entries at certain classifications.
func WithContext ¶WithContext will pass the provided context to logger if it implements the ContextLogger interface and return the resulting logger. Otherwise the logger will be returned as is. As a special case if a nil logger is provided, a Nop logger will be returned to the caller.
type LoggerFunc ¶ added in v1.1.0LoggerFunc is a wrapper around a function to satisfy the Logger interface.
func (LoggerFunc) Logf ¶ added in v1.1.0Logf delegates the logging request to the wrapped function.
type Nop ¶Nop is a Logger implementation that simply does not perform any logging.
func (Nop) Logf ¶Logf simply returns without performing any action
type StandardLogger ¶type StandardLogger struct { Logger *log.Logger }
StandardLogger is a Logger implementation that wraps the standard library logger, and delegates logging to it's Printf method.
func (StandardLogger) Logf ¶Logf logs the given classification and message to the underlying logger.
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