The highest tagged major version is
v2.
package
Version:
v0.14.0
Opens a new window with list of versions in this module.
Published: Sep 29, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 6
Opens a new window with list of known importers.
Documentation
¶
Package log provides a simple pluggable logging interface
func Debugf(t string, args ...interface{})
Debugf logs a debug level log message
func Errorf(t string, args ...interface{})
Errorf logs an error level log message
func Infof(t string, args ...interface{})
Infof logs an info level log message
func Tracef(t string, args ...interface{})
Tracef logs a trace level log message
func Warnf(t string, args ...interface{})
Warnf logs a warn level log message
type Logger interface {
Tracef(string, ...interface{})
Debugf(string, ...interface{})
Infof(string, ...interface{})
Warnf(string, ...interface{})
Errorf(string, ...interface{})
}
Logger interface should be implemented by the logging library you wish to use
Log can be assigned a proper logger, such as logrus configured to your liking.
StdLog is a simplistic logger for rig
Debugf prints a debug level log message
Errorf prints an error level log message
Infof prints an info level log message
Tracef prints a debug level log message
Warnf prints a warn level log message
Source Files
¶
Click to show internal directories.
Click to hide internal directories.