Documentation
¶
Overview ¶
Package logger will take care of all logging messages using logrus
Index ¶
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func HandleWebhookSend(message string, event string, wh webhook.Webhook)
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func LogFile(multiwriter io.Writer)
- func LogRequest(req *http.Request, status int, verbose bool, wh webhook.Webhook)
- func LogSFTPRequest(r *sftp.Request, ip string)
- func LogSFTPRequestBlocked(r *sftp.Request, ip string, err error)
- func MissingEnv(envName string)
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- type CustomFormatter
- type Event
- type StandardLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleWebhookSend ¶ added in v1.0.8
func LogRequest ¶
LogRequest will log the request in a uniform way
func LogSFTPRequest ¶ added in v1.0.7
func LogSFTPRequestBlocked ¶ added in v1.0.7
Types ¶
type CustomFormatter ¶ added in v1.0.8
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) Verbose ¶ added in v1.0.8
func (l *StandardLogger) Verbose(args ...interface{})
Verbose Log
func (*StandardLogger) Verbosef ¶ added in v1.0.8
func (l *StandardLogger) Verbosef(format string, args ...interface{})
Verbosef Log
Click to show internal directories.
Click to hide internal directories.