logger

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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