Documentation ¶
Index ¶
- Variables
- func Debug(msg string)
- func Error(msg string)
- func Info(msg string)
- func InitJSONLogger(conf *Config)
- func InitSimpleLogger(conf *Config)
- func Warn(msg string)
- type Config
- type Entry
- func (e *Entry) Clone() *Entry
- func (e *Entry) Debug(msg string)
- func (e *Entry) Error(msg string)
- func (e *Entry) Info(msg string)
- func (e *Entry) Warn(msg string)
- func (e *Entry) WithContext(ctx context.Context) *Entry
- func (e *Entry) WithError(err error) *Entry
- func (e *Entry) WithFields(f Fields) *Entry
- type Fields
- type LogLevel
Constants ¶
This section is empty.
Variables ¶
View Source
var Key logKey = struct{}{}
Functions ¶
func InitJSONLogger ¶
func InitJSONLogger(conf *Config)
func InitSimpleLogger ¶
func InitSimpleLogger(conf *Config)
Types ¶
type Entry ¶
type Entry struct {
// contains filtered or unexported fields
}
func WithContext ¶ added in v1.1.0
func WithFields ¶
func (*Entry) WithFields ¶
Click to show internal directories.
Click to hide internal directories.