Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFlusher ¶
func NewFlusher(s syncer) func()
NewFlusher creates a new syncer from given syncer that log a error message if failed to sync.
func NewLogger ¶
NewLogger creates a new logger instance from cli.Context TODO: define Logger depend on flag
func NewSugaredLogger ¶
func NewSugaredLogger(c *cli.Context) (*zap.SugaredLogger, func(), error)
NewSugaredLogger creates a new sugared logger and a flush function. The flush function should be called by consumer before quitting application. This function should be use most of the time unless the application requires extensive performance, in this case use NewLogger.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.