Documentation
¶
Overview ¶
File: log/log.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetLogCallback ¶
func SetLogCallback(callback LogCallback)
SetLogCallback sets a callback function that will be called for each log message
Types ¶
type CallbackWriter ¶
type CallbackWriter struct {
// contains filtered or unexported fields
}
CallbackWriter wraps an io.Writer and calls the callback for each log entry
type LogCallback ¶
LogCallback is the type for log callback functions
type WebhookMessage ¶
type WebhookMessage struct {
Content string `json:"content"`
}
Click to show internal directories.
Click to hide internal directories.