Documentation ¶
Index ¶
- func Debug(msg string, tags ...zap.Field)
- func DebugJSON(msg interface{}, tags ...zap.Field)
- func Error(err error, tags ...zap.Field)
- func Field(key string, value interface{}) zap.Field
- func GetTestLogger() *zap.Logger
- func Info(msg string, tags ...zap.Field)
- func Init(cfg *config.Config) error
- func InitTest()
- func Warn(msg string, tags ...zap.Field)
- type CronLogger
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTestLogger ¶ added in v0.1.6
Types ¶
type CronLogger ¶
type CronLogger interface { // Info logs routine messages about cron's operation. Info(msg string, keysAndValues ...interface{}) // Error logs an error condition. Error(err error, msg string, keysAndValues ...interface{}) // Print prints message Print(v ...interface{}) // Printf prints formatted message Printf(format string, v ...interface{}) }
func NewCronLogger ¶
func NewCronLogger() CronLogger
Click to show internal directories.
Click to hide internal directories.