Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLogger ¶
GetLogger returns the zap logger object. This can be used to customize the logger object.
func GetSugaredLogger ¶
func GetSugaredLogger(c *Config) *zap.SugaredLogger
GetSugaredLogger returns the zap sugared logger which can be used to emit log messages from the app.
func GetSugaredLoggerForTest ¶
func GetSugaredLoggerForTest() *zap.SugaredLogger
GetSugardLoggerForTest returns a generic zap sugared logger without configuration that should be used during testing. Namely, this initializes the logger to maximize logging output.
func GetSugaredLoggerWithoutConfig ¶
func GetSugaredLoggerWithoutConfig() (*zap.SugaredLogger, error)
GetSugardLoggerWithoutConfig returns a generic zap sugared logger without configuration. This is useful for emitting log messages before the initialization stage.
func GetZapConfig ¶
GetZapConfig returns the configuration for zap.
Types ¶
Click to show internal directories.
Click to hide internal directories.