Documentation
¶
Index ¶
- Constants
- func Build() error
- type Logger
- func (logger *Logger) ContextLoggingFn(c *gin.Context) LoggingFn
- func (logger *Logger) Debugc(c *gin.Context, msg string, keysAndValues ...interface{})
- func (logger *Logger) Errorc(c *gin.Context, msg string, keysAndValues ...interface{})
- func (logger *Logger) Infoc(c *gin.Context, msg string, keysAndValues ...interface{})
- func (logger *Logger) Print(v ...interface{})
- func (logger *Logger) Warnc(c *gin.Context, msg string, keysAndValues ...interface{})
- type LoggingFn
Constants ¶
View Source
const ( DebugLevel logLevel = "DEBUG" InfoLevel logLevel = "INFO" WarnLevel logLevel = "WARN" ErrorLevel logLevel = "ERROR" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
*zap.SugaredLogger
}
Logger handles all logger from application
var DefaultLogger *Logger
func (*Logger) ContextLoggingFn ¶
ContextLoggingFn creates a LoggingFn to be used in places that do not necessarily need access to the gin context
Click to show internal directories.
Click to hide internal directories.