package
3.30.0-0.dev+incompatible
Repository: https://github.com/projectcalico/calico.git
Documentation: pkg.go.dev

# Functions

AppendTime appends a time to the buffer in our format "2006-01-02 15:04:05.000".
No description provided by the author
ConfigureLoggingForTestingT configures logrus to write to the logger of the given testing.T.
FilterLevels returns all the logrus.Level values <= maxLevel.
FormatForSyslog formats logs in a way tailored for syslog.
No description provided by the author
NewRateLimitedLogger returns a RateLimitedLogger which can be used for rate limited logging.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RedirectLogrusToTestingT redirects logrus output to the given testing.T.
SafeParseLogLevel parses a string version of a logrus log level, defaulting to logrus.PanicLevel on failure.
No description provided by the author

# Constants

FieldForceFlush is a field name used to signal to the BackgroundHook that it should flush the log after this message.
FileNameUnknown is the string used in logs if the filename/line number cannot be determined.
No description provided by the author

# Structs

BackgroundHook is a logrus Hook that (synchronously) formats each log and sends it to one or more Destinations for writing on a background thread.
No description provided by the author
Formatter is our custom log formatter designed to balance ease of machine processing with human readability.
NullWriter is a dummy writer that always succeeds and does nothing.
No description provided by the author
No description provided by the author
TestingTWriter adapts a *testing.T as a Writer so it can be used as a target for logrus.

# Type aliases

No description provided by the author
No description provided by the author