Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZapFactory ¶
type ZapFactory struct { BaseLogger *zap.Logger EnableTrace bool // contains filtered or unexported fields }
ZapFactory is a logger factory backended by zap logger.
func (*ZapFactory) NewLogger ¶
func (f *ZapFactory) NewLogger(scope string) logging.LeveledLogger
NewLogger creates new scoped logger.
func (*ZapFactory) SyncAll ¶
func (f *ZapFactory) SyncAll()
SyncAll calls Sync() method of all child loggers. It is recommended to call this before exiting the program to ensure never loosing buffered log.
Click to show internal directories.
Click to hide internal directories.