Go API Documentation

github.com/TykTechnologies/tyk-pump/logger

No package summary is available.

Package

Files: 1. Third party imports: 1. Imports from organisation: 0. Tests: 0. Benchmarks: 0.

Vars

Functions

func GetLogger

Private functions

func formatter

References: logrus.TextFormatter.

func init

References: os.Getenv.

func level

References: logrus.DebugLevel, logrus.ErrorLevel, logrus.InfoLevel, logrus.WarnLevel, strings.ToLower.


Tests

Files: 1. Third party imports: 1. Imports from organisation: 0. Tests: 2. Benchmarks: 0.

Test functions

TestFormatterWithForcedPrefixFileOutput

References: ioutil.ReadFile, logrus.Fields, os.Create, os.File, os.Remove, strings.Contains.

Test_GetLogger

References: logrus.DebugLevel, logrus.ErrorLevel, logrus.InfoLevel, logrus.Level, logrus.WarnLevel, testing.T.