Documentation ¶
Index ¶
- type StandardLogger
- func (sl *StandardLogger) Debug(format string, v ...interface{})
- func (sl *StandardLogger) Error(format string, v ...interface{})
- func (sl *StandardLogger) Info(format string, v ...interface{})
- func (sl *StandardLogger) SetLevel(level logrus.Level)
- func (sl *StandardLogger) SetOutput(out io.Writer)
- func (sl *StandardLogger) Warn(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StandardLogger ¶
type StandardLogger struct {
// contains filtered or unexported fields
}
StandardLogger enforces specific log message formats
func NewLogger ¶
func NewLogger(testEnv bool) *StandardLogger
NewLogger initializes the standard logger
func (*StandardLogger) Debug ¶
func (sl *StandardLogger) Debug(format string, v ...interface{})
Debug is a standard debug logger
func (*StandardLogger) Error ¶
func (sl *StandardLogger) Error(format string, v ...interface{})
Error is a standard error logger
func (*StandardLogger) Info ¶
func (sl *StandardLogger) Info(format string, v ...interface{})
Info is a standard info logger
func (*StandardLogger) SetLevel ¶
func (sl *StandardLogger) SetLevel(level logrus.Level)
SetLevel permit change the Logger Level
func (*StandardLogger) SetOutput ¶
func (sl *StandardLogger) SetOutput(out io.Writer)
SetOutput permit change the Logger Out
func (*StandardLogger) Warn ¶
func (sl *StandardLogger) Warn(format string, v ...interface{})
Warn is a standard warning logger
Click to show internal directories.
Click to hide internal directories.