Documentation ¶
Index ¶
- func Error(v ...interface{})
- func ErrorToDiscord(v ...interface{})
- func ErrorWithAttachment(attachment []byte, v ...interface{})
- func Info(v ...interface{})
- func InfoToDiscord(v ...interface{})
- func InfoWithAttachment(attachment []byte, v ...interface{})
- func Panic(v ...interface{})
- func PanicToDiscord(v ...interface{})
- func PanicWithAttachment(attachment []byte, v ...interface{})
- func Setup(hookURL, pingID string)
- func Success(v ...interface{})
- func SuccessToDiscord(v ...interface{})
- func SuccessWithAttachment(attachment []byte, v ...interface{})
- func Warn(v ...interface{})
- func WarnToDiscord(v ...interface{})
- func WarnWithAttachment(attachment []byte, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorToDiscord ¶
func ErrorToDiscord(v ...interface{})
ErrorToDiscord logs a message to the terminal with [ERROR] prefix The message is also forwarded to the Discord server without pinging users
func ErrorWithAttachment ¶
func ErrorWithAttachment(attachment []byte, v ...interface{})
ErrorWithAttachment logs a message to the terminal with [ERROR] prefix If we can send a webhook, the message and attachment are forwarded to the Discord server without pinging users If we cannot send a webhook the attachment is sent to the terminal
func InfoToDiscord ¶
func InfoToDiscord(v ...interface{})
InfoToDiscord logs a message to the terminal with [INFO] prefix The message is also forwarded to the Discord server without pinging users
func InfoWithAttachment ¶
func InfoWithAttachment(attachment []byte, v ...interface{})
InfoWithAttachment logs a message to the terminal with [INFO] prefix If we can send a webhook, the message and attachment are forwarded to the Discord server without pinging users If we cannot send a webhook the attachment is sent to the terminal
func PanicToDiscord ¶
func PanicToDiscord(v ...interface{})
PanicToDiscord logs a message to the terminal with [PANIC] prefix The message is also forwarded to the Discord server and pings the users
func PanicWithAttachment ¶
func PanicWithAttachment(attachment []byte, v ...interface{})
PanicWithAttachment logs a message to the terminal with [PANIC] prefix If we can send a webhook, the message and attachment are forwarded to the Discord server and pings the users If we cannot send a webhook the attachment is sent to the terminal
func Setup ¶
func Setup(hookURL, pingID string)
Setup primes the threadSafeLogger to send messages to a Discord server hookURL is the weebhook URL created by the Discord server in the Integrations settings pingID is the Discord user or role ID to ping when sending important messages Setup can be safely called at any time to change the Discord server hookURL and pingID
func Success ¶
func Success(v ...interface{})
Success logs a message to the terminal with [SUCCESS] prefix
func SuccessToDiscord ¶
func SuccessToDiscord(v ...interface{})
SuccessToDiscord logs a message to the terminal with [SUCCESS] prefix The message is also forwarded to the Discord server without pinging users
func SuccessWithAttachment ¶
func SuccessWithAttachment(attachment []byte, v ...interface{})
SuccessWithAttachment logs a message to the terminal with [SUCCESS] prefix If we can send a webhook, the message and attachment are forwarded to the Discord server without pinging users If we cannot send a webhook the attachment is sent to the terminal
func WarnToDiscord ¶
func WarnToDiscord(v ...interface{})
WarnToDiscord logs a message to the terminal with [WARN] prefix The message is also forwarded to the Discord server without pinging users
func WarnWithAttachment ¶
func WarnWithAttachment(attachment []byte, v ...interface{})
WarnWithAttachment logs a message to the terminal with [WARN] prefix If we can send a webhook, the message and attachment are forwarded to the Discord server without pinging users If we cannot send a webhook the attachment is sent to the terminal
Types ¶
This section is empty.