logger

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: MPL-2.0 Imports: 4 Imported by: 5

Documentation

Index

Constants

View Source
const (
	EnvTykLoglevel  = "TYK_LOGLEVEL"
	EnvTykLogformat = "TYK_LOGFORMAT"
)
View Source
const (
	TimeFormatLegacy  = "Jan 02 15:04:05"
	TimeFormatRFC3339 = time.RFC3339
)

Variables

This section is empty.

Functions

func GetLogger

func GetLogger() *logrus.Logger

func SetupFormatter added in v1.16.0

func SetupFormatter(format Format, envVars ...string)

Types

type Format added in v1.16.0

type Format string
const (
	FormatJSON   Format = "json"
	FormatText   Format = "text"
	FormatLegacy Format = "legacy"
)

Jump to

Keyboard shortcuts

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