Documentation
¶
Overview ¶
Package log provides a log interface
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger interface {
// Init initialises options
Init(options ...Option) error
// Level returns the logging level
Level() Level
// Log inserts a log entry. Arguments may be handled in the manner
// of fmt.Print, but the underlying logger may also decide to handle
// them differently.
Log(level Level, v ...interface{})
// Logf insets a log entry. Arguments are handled in the manner of
// fmt.Printf.
Logf(level Level, format string, v ...interface{})
// Fields set fields to always be logged
Fields(fields ...Field) Logger
// SetLevel updates the logging level.
SetLevel(Level)
// String returns the name of logger
String() string
}
Logger is a generic logging interface
Click to show internal directories.
Click to hide internal directories.