Documentation ¶
Index ¶
- Constants
- func Debug(v ...interface{})
- func Debugf(format string, v ...interface{})
- func Error(v ...interface{})
- func Errorf(format string, v ...interface{})
- func Fatal(v interface{})
- func Fatalf(format string, v ...interface{})
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func Init(name string)
- func IsOutputPiped() bool
- func Notify(v ...interface{})
- func Result(v ...interface{})
- func Resultf(format string, v ...interface{})
- func SetLevel(level Level)
- func SetLevelStr(level string)
- func Warn(v ...interface{})
- func Warnf(format string, v ...interface{})
- func WithFields(fields Fields) *logrus.Entry
- type CustomFormatter
- type Fields
- type Label
- type Level
- type Logger
Constants ¶
const PipedOutputNotification = "Notice: Output is being piped. Results will be formatted accordingly."
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(v ...interface{})
Debug logs a message at level Debug on the standard logger.
func Debugf ¶
func Debugf(format string, v ...interface{})
Debugf logs a message at level Debug on the standard logger.
func Error ¶
func Error(v ...interface{})
Error logs a message at level Error on the standard logger.
func Errorf ¶
func Errorf(format string, v ...interface{})
Errorf logs a message at level Error on the standard logger.
func Fatalf ¶
func Fatalf(format string, v ...interface{})
Fatalf logs a message at level Fatal on the standard logger.
func Infof ¶
func Infof(format string, v ...interface{})
Infof logs a message at level Info on the standard logger.
func IsOutputPiped ¶
func IsOutputPiped() bool
func Notify ¶
func Notify(v ...interface{})
Notify logs a message using a specified or global logger.
func Result ¶
func Result(v ...interface{})
Result logs a message using a specified or global logger. The log is printed to stdout, and metadata is printed to stderr if not piped.
func Resultf ¶
func Resultf(format string, v ...interface{})
Resultf logs a formatted message using a specified or global logger. The log is printed to stdout, and metadata is printed to stderr if not piped.
func Warnf ¶
func Warnf(format string, v ...interface{})
Warnf logs a message at level Warn on the standard logger.
func WithFields ¶
WithFields returns a logrus entry with the fields set
Types ¶
type CustomFormatter ¶
type CustomFormatter struct {
// contains filtered or unexported fields
}
type Label ¶
type Label struct {
// contains filtered or unexported fields
}
func (*Label) Log ¶
func (l *Label) Log(v ...interface{})
Logf logs message at the Info level using the label's logger. If the label's logger is not set, it defaults to the global logger.