Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyGlobalConfig ¶ added in v3.6.0
func L ¶
L returns a logger that has a lvl Level(), and will write logs to InfoWriter() and ErrWriter(). The returned logger is shared by all L() call.
func Level ¶
func Level() zap.AtomicLevel
func NewPluginLogger ¶
NewPluginLogger returns a named logger from L.
func S ¶
func S() *zap.SugaredLogger
S returns a sugared L. The returned logger is shared by all S() call.
Types ¶
type AtomicWriteSyncer ¶
type AtomicWriteSyncer struct {
// contains filtered or unexported fields
}
func ErrWriter ¶ added in v3.4.0
func ErrWriter() *AtomicWriteSyncer
func InfoWriter ¶ added in v3.4.0
func InfoWriter() *AtomicWriteSyncer
func NewAtomicWriteSyncer ¶
func NewAtomicWriteSyncer(ws zapcore.WriteSyncer) *AtomicWriteSyncer
func (*AtomicWriteSyncer) Replace ¶
func (a *AtomicWriteSyncer) Replace(ws zapcore.WriteSyncer)
func (*AtomicWriteSyncer) Sync ¶
func (a *AtomicWriteSyncer) Sync() error
Click to show internal directories.
Click to hide internal directories.