package
0.0.0-20220615103108-6a93a1912c7a
Repository: https://github.com/videocoin/common.git
Documentation: pkg.go.dev
# Functions
Debugf convenience function calls the global loggerr.
Debugln convenience function calls the global logger.
Errorf convenience function calls the global logger.
Errorln convenience function calls the global logger.
Global returns the global logger.
Infof convenience function calls the global logger.
Infoln convenience function calls the global logger.
Logrus wraps an existing Logrus logger.
NewLogrus makes a new Interface backed by a logrus logger.
NewLogrusFormat makes a new Interface backed by a logrus logger format can be "json" or defaults to logfmt.
Noop logger.
SetGlobal sets the global logger.
Setup configures a global logrus logger to output to stderr.
Warnf convenience function calls the global logger.
Warnln convenience function calls the global logger.
WithField convenience function calls the global logger.
# Interfaces
Interface 'unifies' gokit logging and logrus logging, such that the middleware in this repo can be used in projects which use either loggers.
# Type aliases
Fields convenience type for adding multiple fields to a log statement.