Documentation ¶
Index ¶
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Debugln(args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Errorln(args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Fatalln(args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Infoln(args ...interface{})
- func Setup(opts ...Option) error
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- func Warnln(args ...interface{})
- type Config
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(args ...interface{})
Debug function to print a pretty formatted log debug message
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf function to print a pretty formatted log debug message
func Debugln ¶
func Debugln(args ...interface{})
Debugln function to print a pretty formatted log debug message
func Error ¶
func Error(args ...interface{})
Error function to print a pretty formatted log error message
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf function to print a pretty formatted log error message
func Errorln ¶
func Errorln(args ...interface{})
Errorln function to print a pretty formatted log error message
func Fatal ¶
func Fatal(args ...interface{})
Fatal function to print a pretty formatted log fatal message
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf function to print a pretty formatted log fatal message
func Fatalln ¶
func Fatalln(args ...interface{})
Fatalln function to print a pretty formatted log fatal message
func Info ¶
func Info(args ...interface{})
Info function to print a pretty formatted log info message
func Infof ¶
func Infof(format string, args ...interface{})
Infof function to print a pretty formatted log info message
func Infoln ¶
func Infoln(args ...interface{})
Infoln function to print a pretty formatted log info message
func Warn ¶
func Warn(args ...interface{})
Warn function to print a pretty formatted log warn message
Types ¶
type Config ¶
Config defines all the configurable options for the logrus logger
func (*Config) SetDefault ¶
SetDefault set default values for logrus logger configurable options
type Option ¶
type Option func(*options) error
Option will configure a new logrus Logger
func WithConfig ¶
WithConfig takes the logger configuration and applies it
func WithFormatter ¶
WithFormatter allows setting the format to `text`, `color`, `json`, `json-pretty` or `plain`. In case the input is not recognized it defaults to text with a warning. More details of these formats: * `text` - human readable. * `color` - human readable, in color. Useful for development. * `json` - computer readable, new-line delimited JSON. * `json-pretty` - computer readable pretty JSON. * `plain` - custom human readable.
func WithLogLevel ¶
WithLogLevel is used to set the log level when defaulting to `info` is not wanted. Other options are: `debug`, `info`, `warn` and `error`
func WithOutput ¶
WithOutput configures the writer used to write logs to
func WithOutputStr ¶
WithOutputStr allows customization of the sink of the logger. Output is either: `stdout`, `stderr`, or `file`
func WithSetReportCaller ¶
WithSetReportCaller configures the logrus logger SetReportCaller