Documentation ¶
Overview ¶
Package snitch implements a thin wrapper around `zap` logger that snitches log messages according to log level to specified Telegram chat through your bot.
Index ¶
- Constants
- type Config
- type Level
- type Zap
- func (s *Zap) Debug(msg string, fields ...zapcore.Field)
- func (s *Zap) Error(msg string, fields ...zapcore.Field)
- func (s *Zap) Fatal(msg string, fields ...zapcore.Field)
- func (s *Zap) Info(msg string, fields ...zapcore.Field)
- func (s *Zap) Panic(msg string, fields ...zapcore.Field)
- func (s *Zap) Warn(msg string, fields ...zapcore.Field)
Constants ¶
View Source
const ( DebugPrefix = "DEBUG: " InfoPrefix = "INFO: " WarnPrefix = "WARN: " ErrorPrefix = "ERROR: " CritPrefix = "CRIT: " )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Zap ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.