package
0.0.0-20240618075559-fdca28a87b0a
Repository: https://github.com/mandelsoft/logging.git
Documentation: pkg.go.dev
# Functions
LogWriter return the original log writer used for a logr.LogSink wrapping logrus.
New will return a new logr.Logger created from a logrus.FieldLogger.
SetFormatter sets the logrus formatter for a sink wrapping a logrus.Logger.
WithFormatter will set the FormatFunc to use.
WithName will set an initial name instead of having to call `WithName` on the logger itself after constructing it.
WithReportCaller will enable reporting of the caller.
# Constants
FieldKeyLogger is the name of the field used to store the logr logger name.
# Type aliases
FormatFunc is the function to format log values with for non primitive data.
Option is options to give when construction a logrusr logger.