Documentation ¶
Overview ¶
Package logging provides wrappers around zap logging.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment int
Environment enumerates predefined logging configurations.
const ( // ProductionLogger is a short hand for predefined logging configuration for production use. ProductionLogger Environment = iota // DevelopmentLogger is a short hand for predefined logging configuration for development use. DevelopmentLogger )
type Logger ¶
type Logger struct {
*zap.SugaredLogger
}
Logger wraps a zap.SugaredLogger.
func CreateDevelopmentLogger ¶
func CreateDevelopmentLogger() *Logger
CreateDevelopmentLogger creates a new development logger.
func CreateProductionLogger ¶
func CreateProductionLogger() *Logger
CreateProductionLogger creates a new production logger.
Click to show internal directories.
Click to hide internal directories.