Documentation ¶ Index ¶ func SetLogger(l Logger) type AsyncSink func NewAsync(writer io.Writer) *AsyncSink func (this_ *AsyncSink) Close() error func (this_ *AsyncSink) Closed() bool func (this_ *AsyncSink) Write(p []byte) (n int, err error) type Context type Event type ILogger type Level type Logger Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func SetLogger ¶ func SetLogger(l Logger) SetLogger set default logger Types ¶ type AsyncSink ¶ type AsyncSink struct { // contains filtered or unexported fields } AsyncSink write log asynchronously func NewAsync ¶ func NewAsync(writer io.Writer) *AsyncSink NewAsync create a AsyncSink func (*AsyncSink) Close ¶ func (this_ *AsyncSink) Close() error func (*AsyncSink) Closed ¶ func (this_ *AsyncSink) Closed() bool Closed return true if closed func (*AsyncSink) Write ¶ func (this_ *AsyncSink) Write(p []byte) (n int, err error) type Context ¶ type Context = zerolog.Context type Event ¶ type Event = zerolog.Event type ILogger ¶ added in v0.1.0 type ILogger interface { Trace() *Event Debug() *Event Info() *Event Warn() *Event Error() *Event Fatal() *Event Panic() *Event NoLevel() *Event Disabled() *Event WithLevel(Level) *Event } type Level ¶ added in v0.1.0 type Level = zerolog.Level type Logger ¶ type Logger = zerolog.Logger var ( Log *Logger ) Source Files ¶ View all Source files async.go logger.go Click to show internal directories. Click to hide internal directories.