Documentation ¶
Index ¶
- func CompactJsonFormatter(message string, v []interface{}, e []error) string
- func DefaultFilter() []string
- func PrettyJsonFormatter(message string, v []interface{}, e []error) string
- func SimpleFormatter(message string, v []interface{}, es []error) string
- type Accessor
- type Facility
- type Formatter
- type Log
- type Logger
- type Priority
- type Selector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompactJsonFormatter ¶
func DefaultFilter ¶
func DefaultFilter() []string
func PrettyJsonFormatter ¶
func SimpleFormatter ¶
Types ¶
type Facility ¶
type Facility interface { OpenLogs(level Priority) (map[Priority]*log.Logger, error) Reopen() error }
func NewFileFacility ¶
func NewSyslogFacility ¶
func SharedFacility ¶
func SharedFacility() Facility
type Formatter ¶
func DefaultFormatter ¶
func DefaultFormatter() Formatter
type Log ¶
type Log interface { Printe(message string, v ...interface{}) Prints(message string, v ...interface{}) Fatals(message string, v ...interface{}) Logger() *log.Logger ScopedLog(err ...error) Log Offset(stackOffset int) Log // Shortcuts to log.Logger Output(calldepth int, s string) error Printf(format string, v ...interface{}) Print(v ...interface{}) Println(v ...interface{}) // contains filtered or unexported methods }
type Logger ¶
type Logger interface { Accessor Level() Priority Formatter() Formatter On(err ...error) Selector Success() Selector With(err ...error) Selector }
func SharedLogger ¶
func SharedLogger() Logger
type Priority ¶
type Priority int
Logging level expressed as a number. Positive numbers correspond to trace detail level. Default is value corresponds to Info logging level.
func DefaultLevel ¶
func DefaultLevel() Priority
func (Priority) SyslogPriority ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.