Documentation ¶
Index ¶
- Constants
- Variables
- func Audit(s *discordgo.Session, content string, user *discordgo.User, span ddtrace.Span, ...) *discordgo.Message
- func AuditButton(s *discordgo.Session, content string, button discordgo.Button, ...) *discordgo.Message
- func AuditButtons(s *discordgo.Session, content string, buttons []discordgo.MessageComponent, ...) *discordgo.Message
- func AuditDD(content string, span ddtrace.Span, fields ...logrus.Fields)
- func Critical(s *discordgo.Session, content string, user *discordgo.User, span ddtrace.Span, ...) *discordgo.Message
- func CriticalButton(s *discordgo.Session, content string, button discordgo.Button, ...) *discordgo.Message
- func CriticalButtons(s *discordgo.Session, content string, buttons []discordgo.MessageComponent, ...) *discordgo.Message
- func CriticalDD(content string, span ddtrace.Span, fields ...logrus.Fields)
- func Debug(s *discordgo.Session, content string, user *discordgo.User, span ddtrace.Span, ...) *discordgo.Message
- func DebugButton(s *discordgo.Session, content string, button discordgo.Button, ...) *discordgo.Message
- func DebugButtons(s *discordgo.Session, content string, buttons []discordgo.MessageComponent, ...) *discordgo.Message
- func DebugDD(content string, span ddtrace.Span, fields ...logrus.Fields)
- func DebugLow(s *discordgo.Session, content string, user *discordgo.User, span ddtrace.Span, ...) *discordgo.Message
- func DebugLowButton(s *discordgo.Session, content string, button discordgo.Button, ...) *discordgo.Message
- func DebugLowButtons(s *discordgo.Session, content string, buttons []discordgo.MessageComponent, ...) *discordgo.Message
- func Error(s *discordgo.Session, content string, user *discordgo.User, span ddtrace.Span, ...) *discordgo.Message
- func ErrorButton(s *discordgo.Session, content string, button discordgo.Button, ...) *discordgo.Message
- func ErrorButtons(s *discordgo.Session, content string, buttons []discordgo.MessageComponent, ...) *discordgo.Message
- func ErrorDD(content string, span ddtrace.Span, fields ...logrus.Fields)
- func Info(s *discordgo.Session, content string, user *discordgo.User, span ddtrace.Span, ...) *discordgo.Message
- func InfoButton(s *discordgo.Session, content string, button discordgo.Button, ...) *discordgo.Message
- func InfoButtons(s *discordgo.Session, content string, buttons []discordgo.MessageComponent, ...) *discordgo.Message
- func InfoDD(content string, span ddtrace.Span, fields ...logrus.Fields)
- func LogLevel() structs.LogLevel
- func Warning(s *discordgo.Session, content string, user *discordgo.User, span ddtrace.Span, ...) *discordgo.Message
- func WarningButton(s *discordgo.Session, content string, button discordgo.Button, ...) *discordgo.Message
- func WarningButtons(s *discordgo.Session, content string, buttons []discordgo.MessageComponent, ...) *discordgo.Message
- func WarningDD(content string, span ddtrace.Span, fields ...logrus.Fields)
Constants ¶
const ( // Logging Levels DebugLowLevel structs.LogLevel = iota DebugLevel InfoLevel WarningLevel ErrorLevel CriticalLevel AuditLevel )
Variables ¶
var ( // LevelChannelMap maps a logging level to a channel LevelChannelMap map[structs.LogLevel]*string = make(map[structs.LogLevel]*string) // LevelNameMap maps a logging level to a name LevelNameMap map[structs.LogLevel]string = make(map[structs.LogLevel]string) // NameLevelMap maps a name to a logging level NameLevelMap map[string]structs.LogLevel = make(map[string]structs.LogLevel) )
var ( // Out is the file to write logs to Out *os.File )
Functions ¶
func Audit ¶
func Audit(s *discordgo.Session, content string, user *discordgo.User, span ddtrace.Span, fields ...logrus.Fields) *discordgo.Message
Audit logs an audit message
func AuditButton ¶
func AuditButton(s *discordgo.Session, content string, button discordgo.Button, user *discordgo.User, span ddtrace.Span, fields ...logrus.Fields) *discordgo.Message
AuditButtons logs a message with buttons at the AuditLevel
func AuditButtons ¶
func AuditButtons(s *discordgo.Session, content string, buttons []discordgo.MessageComponent, user *discordgo.User, span ddtrace.Span, fields ...logrus.Fields) *discordgo.Message
AuditButtons logs a message with buttons at the AuditLevel
func Critical ¶
func Critical(s *discordgo.Session, content string, user *discordgo.User, span ddtrace.Span, fields ...logrus.Fields) *discordgo.Message
Critical logs a critical message
func CriticalButton ¶
func CriticalButton(s *discordgo.Session, content string, button discordgo.Button, user *discordgo.User, span ddtrace.Span, fields ...logrus.Fields) *discordgo.Message
CriticalButtons logs a message with buttons at the CriticalLevel
func CriticalButtons ¶
func CriticalButtons(s *discordgo.Session, content string, buttons []discordgo.MessageComponent, user *discordgo.User, span ddtrace.Span, fields ...logrus.Fields) *discordgo.Message
CriticalButtons logs a message with buttons at the CriticalLevel
func CriticalDD ¶
CriticalDD logs a critical message to datadog
func Debug ¶
func Debug(s *discordgo.Session, content string, user *discordgo.User, span ddtrace.Span, fields ...logrus.Fields) *discordgo.Message
Debug logs a debug message
func DebugButton ¶
func DebugButton(s *discordgo.Session, content string, button discordgo.Button, user *discordgo.User, span ddtrace.Span, fields ...logrus.Fields) *discordgo.Message
DebugButtons logs a message with buttons at the DebugLevel
func DebugButtons ¶
func DebugButtons(s *discordgo.Session, content string, buttons []discordgo.MessageComponent, user *discordgo.User, span ddtrace.Span, fields ...logrus.Fields) *discordgo.Message
DebugButtons logs a message with buttons at the DebugLevel
func DebugLow ¶
func DebugLow(s *discordgo.Session, content string, user *discordgo.User, span ddtrace.Span, fields ...logrus.Fields) *discordgo.Message
DebugLow logs a debug message
func DebugLowButton ¶
func DebugLowButton(s *discordgo.Session, content string, button discordgo.Button, user *discordgo.User, span ddtrace.Span, fields ...logrus.Fields) *discordgo.Message
DebugLowButtons logs a message with buttons at the DebugLowLevel
func DebugLowButtons ¶
func DebugLowButtons(s *discordgo.Session, content string, buttons []discordgo.MessageComponent, user *discordgo.User, span ddtrace.Span, fields ...logrus.Fields) *discordgo.Message
DebugLowButtons logs a message with buttons at the DebugLowLevel
func Error ¶
func Error(s *discordgo.Session, content string, user *discordgo.User, span ddtrace.Span, fields ...logrus.Fields) *discordgo.Message
Error logs an error message
func ErrorButton ¶
func ErrorButton(s *discordgo.Session, content string, button discordgo.Button, user *discordgo.User, span ddtrace.Span, fields ...logrus.Fields) *discordgo.Message
ErrorButtons logs a message with buttons at the ErrorLevel
func ErrorButtons ¶
func ErrorButtons(s *discordgo.Session, content string, buttons []discordgo.MessageComponent, user *discordgo.User, span ddtrace.Span, fields ...logrus.Fields) *discordgo.Message
ErrorButtons logs a message with buttons at the ErrorLevel
func Info ¶
func Info(s *discordgo.Session, content string, user *discordgo.User, span ddtrace.Span, fields ...logrus.Fields) *discordgo.Message
Info logs an info message
func InfoButton ¶
func InfoButton(s *discordgo.Session, content string, button discordgo.Button, user *discordgo.User, span ddtrace.Span, fields ...logrus.Fields) *discordgo.Message
InfoButtons logs a message with buttons at the InfoLevel
func InfoButtons ¶
func InfoButtons(s *discordgo.Session, content string, buttons []discordgo.MessageComponent, user *discordgo.User, span ddtrace.Span, fields ...logrus.Fields) *discordgo.Message
InfoButtons logs a message with buttons at the InfoLevel
func Warning ¶
func Warning(s *discordgo.Session, content string, user *discordgo.User, span ddtrace.Span, fields ...logrus.Fields) *discordgo.Message
Warning logs a warning message
func WarningButton ¶
func WarningButton(s *discordgo.Session, content string, button discordgo.Button, user *discordgo.User, span ddtrace.Span, fields ...logrus.Fields) *discordgo.Message
WarningButtons logs a message with buttons at the WarningLevel
Types ¶
This section is empty.