Documentation ¶
Index ¶
- func Debugf(format string, params ...interface{})
- func Errorf(format string, params ...interface{})
- func Fatalf(format string, params ...interface{})
- func GetLogger() *zap.Logger
- func GetSugaredLogger() *zap.SugaredLogger
- func Infof(format string, params ...interface{})
- func InitLogger(logLevel string)
- func InitProdLogger(logLevel string)
- func Warnf(format string, params ...interface{})
- type WatermillAdapter
- func (a WatermillAdapter) Debug(msg string, fields watermill.LogFields)
- func (a WatermillAdapter) Error(msg string, err error, fields watermill.LogFields)
- func (a WatermillAdapter) Info(msg string, fields watermill.LogFields)
- func (a WatermillAdapter) Trace(msg string, fields watermill.LogFields)
- func (a WatermillAdapter) With(fields watermill.LogFields) watermill.LoggerAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(format string, params ...interface{})
Debugf logs a formatted debug message
func Errorf ¶
func Errorf(format string, params ...interface{})
Errorf logs a formatted error message
func Fatalf ¶
func Fatalf(format string, params ...interface{})
Fatalf logs a formatted fatal message
func GetSugaredLogger ¶
func GetSugaredLogger() *zap.SugaredLogger
GetSugaredLogger returns the sugared zap logger
func InitProdLogger ¶ added in v0.1.3
func InitProdLogger(logLevel string)
InitProdLogger initializes production logger
Types ¶
type WatermillAdapter ¶
type WatermillAdapter struct {
// contains filtered or unexported fields
}
WatermillAdapter represents a logger implementation for Watermill
func (WatermillAdapter) Debug ¶
func (a WatermillAdapter) Debug(msg string, fields watermill.LogFields)
Debug logs a formatted debug message
func (WatermillAdapter) Error ¶
func (a WatermillAdapter) Error(msg string, err error, fields watermill.LogFields)
Error logs a formatted error message
func (WatermillAdapter) Info ¶
func (a WatermillAdapter) Info(msg string, fields watermill.LogFields)
Info logs a formatted info message
func (WatermillAdapter) Trace ¶
func (a WatermillAdapter) Trace(msg string, fields watermill.LogFields)
Trace logs a formatted trace message
func (WatermillAdapter) With ¶
func (a WatermillAdapter) With(fields watermill.LogFields) watermill.LoggerAdapter
With adds a log fields to the adapter
Click to show internal directories.
Click to hide internal directories.