Documentation ¶
Index ¶
- func DiscordgoLogger(logger *zap.Logger) func(msgL, caller int, format string, a ...interface{})
- func NewLogger(env Environment, service, discordWebhookURL string, client *http.Client) (*zap.Logger, error)
- func NewZapHookDiscord(serviceName, webhookURL string, client *http.Client) func(zapcore.Entry) error
- type Environment
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscordgoLogger ¶
DiscordgoLogger returns a logger to use with github.com/bwmarrin/discordgo
Types ¶
type Environment ¶
type Environment string
Environment represents a environment in which a service is running
const ( DevelopmentEnvironment Environment = "development" ProductionEnvironment Environment = "production" )
defines possibly environments
Click to show internal directories.
Click to hide internal directories.