Documentation ¶
Overview ¶
Package log is inspired by apex/log.
Index ¶
- Variables
- type Entry
- type Field
- type Fields
- type Handler
- type Level
- type Log
- type Logger
- func (l *Logger) Debug(msg string, args ...interface{}) error
- func (l *Logger) Err(err error, msg string, args ...interface{}) error
- func (l *Logger) Error(msg string, args ...interface{}) error
- func (l *Logger) Field(key string, value interface{}) Log
- func (l *Logger) Fields(fields map[string]interface{}) Log
- func (l *Logger) Info(msg string, args ...interface{}) error
- func (l *Logger) Notice(msg string, args ...interface{}) error
- func (l *Logger) Warn(msg string, args ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Discard = discard{}
View Source
var Now = time.Now
Now returns the current time.
Functions ¶
This section is empty.
Types ¶
type Log ¶ added in v0.2.6
type Log interface { Field(key string, value interface{}) Log Fields(fields map[string]interface{}) Log Debug(msg string, args ...interface{}) error Info(msg string, args ...interface{}) error Notice(msg string, args ...interface{}) error Warn(msg string, args ...interface{}) error Error(msg string, args ...interface{}) error Err(err error, msg string, args ...interface{}) error }
Click to show internal directories.
Click to hide internal directories.