Documentation
¶
Overview ¶
Package logr defines Logger interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { // Info logs a non-error message with the given key/value pairs as context. Info(msg string, keysAndValues ...interface{}) // Error logs an error, with the given message and key/value pairs as context. Error(err error, msg string, keysAndValues ...interface{}) // WithValues adds some key-value pairs of context to a logger. WithValues(keysAndValues ...interface{}) Logger }
Logger is a sub-interface of github.com/go-logr/logr::Logger, which i think it's enough in most cases.
var ( // Nop does nothing. Nop Logger = nopLogger{} )
Click to show internal directories.
Click to hide internal directories.