Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffered ¶
Buffered is a logger that might not persist the logged messages immediately, e.g. because doing so may be too inefficient.
The `Flush` method must be called from time to time, to ensure all pending writes are persisted.
type Logger ¶
type Logger interface { Print(v ...interface{}) Printf(format string, v ...interface{}) Error(v ...interface{}) Errorf(format string, v ...interface{}) WithFields(fields Fields) Logger }
var Discard Logger = &discardLogger{}
func FromStandard ¶
type MessageLogger ¶
type MessageType ¶
type MessageType string
const ( MessageTypeDebug MessageType = "debug" MessageTypeWarning MessageType = "warning" MessageTypeError MessageType = "error" )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.