logger

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *logrus.Logger

Functions

func GetGlobal

func GetGlobal() *logrus.Logger

GetGlobal - Returns existing instance of global logger (it'll create a new one if doesn't exist).

func HookSentry

func HookSentry(log *logrus.Logger, sentryDsn string)

HookSentry - Configures (optionally) the Sentry hook for logrus.

func HookSyslog

func HookSyslog(log *logrus.Logger, syslogProtocol string, syslogEndpoint string)

HookSyslog - Configures (optionally) the syslog hook for logrus.

func InitLogs

func InitLogs(verboseFlag bool, logFile string)

InitLogs - Configures basic settings for logging with logrus.

func Log

func Log(req http.Request, reqID string, message string)

Log - Logs against a requested URL.

func LogRequest

func LogRequest(req http.Request, statusCode int, lenContent int, reqID string, cacheLabel int)

LogRequest - Logs the requested URL.

func LogSetup

func LogSetup(server config.Server)

LogSetup - Logs the env variables required for a reverse proxy.

func SetDebugLevel

func SetDebugLevel()

SetDebugLevel - Changes log level to DEBUG.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL