Documentation
¶
Index ¶
- Variables
- func GetGlobal() *logrus.Logger
- func HookSentry(log *logrus.Logger, sentryDsn string)
- func HookSyslog(log *logrus.Logger, syslogProtocol string, syslogEndpoint string)
- func InitLogs(verboseFlag bool, logFile string)
- func Log(req http.Request, reqID string, message string)
- func LogRequest(req http.Request, statusCode int, lenContent int, reqID string, cacheLabel int)
- func LogSetup(server config.Server)
- func SetDebugLevel()
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *logrus.Logger
Functions ¶
func GetGlobal ¶
GetGlobal - Returns existing instance of global logger (it'll create a new one if doesn't exist).
func HookSentry ¶
HookSentry - Configures (optionally) the Sentry hook for logrus.
func HookSyslog ¶
HookSyslog - Configures (optionally) the syslog hook for logrus.
func LogRequest ¶
LogRequest - Logs the requested URL.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.