Documentation
¶
Overview ¶
Package logger will take care of all logging messages using logrus
Index ¶
- func Debug(args ...any)
- func Debugf(format string, args ...any)
- func Error(args ...any)
- func Errorf(format string, args ...any)
- func Fatal(args ...any)
- func Fatalf(format string, args ...any)
- func HandleWebhookSend(message string, event string, wh webhook.Webhook)
- func Info(args ...any)
- func Infof(format string, args ...any)
- func LogFile(multiwriter io.Writer)
- func LogRequest(req *http.Request, status int, verbose bool, wh webhook.Webhook, body []byte)
- func LogSFTPRequest(r *sftp.Request, ip string)
- func LogSFTPRequestBlocked(r *sftp.Request, ip string, err error)
- func MissingEnv(envName string)
- func Panic(args ...any)
- func Panicf(format string, args ...any)
- func Warn(args ...any)
- func Warnf(format string, args ...any)
- type CustomFormatter
- type Event
- type StandardLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogRequest ¶
LogRequest will log the request in a uniform way
func LogSFTPRequest ¶
Types ¶
type CustomFormatter ¶
type CustomFormatter struct {
logrus.TextFormatter
}
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
Event stores messages to log later, from our standard interface.
type StandardLogger ¶
StandardLogger enforces specific log message formats.
func (*StandardLogger) Verbosef ¶
func (l *StandardLogger) Verbosef(format string, args ...any)
Verbosef Log
Click to show internal directories.
Click to hide internal directories.