Documentation
¶
Index ¶
- Variables
- type Logger
- func (logger *Logger) Error(err error, error string)
- func (logger *Logger) Fatal(err error, fatal string)
- func (logger *Logger) GetLogger() *logrus.Logger
- func (logger *Logger) Info(field, value, info string)
- func (logger *Logger) InfoWithFields(fields map[string]interface{}, info string)
- func (logger *Logger) SetVerbosity(verbosity int)
- func (logger *Logger) Warn(field, value, warn string)
- func (logger *Logger) WarnWithFields(fields map[string]interface{}, warn string)
Constants ¶
This section is empty.
Variables ¶
View Source
var Log = &Logger{}
Log variable initialises Top level logging object
Functions ¶
This section is empty.
Types ¶
type Logger ¶
Logger struct used to set log level across packages
func (*Logger) InfoWithFields ¶
InfoWithFields outputs info log with multiple field and values
func (*Logger) SetVerbosity ¶
SetVerbosity sets the verbosity level of the logging tool
func (*Logger) WarnWithFields ¶
WarnWithFields outputs warning log with multiple field and values
Click to show internal directories.
Click to hide internal directories.