Documentation ¶
Overview ¶
Package logger implements various logging utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
Logger defines logging interface. TODO: add "Lvl(lvl int)" for clientv3 loggers. TODO: make this settable with "Set" method.
func NewDiscardLogger ¶
func NewDiscardLogger() Logger
NewDiscardLogger returns a new Logger that discards everything except "fatal".
func NewPackageLogger ¶
func NewPackageLogger(p *capnslog.PackageLogger) Logger
NewPackageLogger wraps "*capnslog.PackageLogger" that implements "Logger" interface.
For example:
var defaultLogger Logger plog := capnslog.NewPackageLogger("github.com/coreos/etcd", "snapshot") defaultLogger = NewPackageLogger(plog)
Click to show internal directories.
Click to hide internal directories.