Documentation ¶
Overview ¶
nolint:goprintffuncname
nolint:goprintffuncname
Index ¶
- func DisableColor()
- func EnableColor()
- func Error(format string, args ...interface{})
- func Errorf(format string, args ...interface{}) error
- func Fatal(format string, args ...interface{})
- func Info(format string, args ...interface{})
- func SetWriter(w io.Writer)
- func Success(format string, args ...interface{})
- func Warning(format string, args ...interface{})
- type Log
- func (p *Log) DisableColor()
- func (p *Log) EnableColor()
- func (p Log) Error(format string, args ...interface{})
- func (p Log) Errorf(format string, args ...interface{}) error
- func (p Log) Fatal(format string, args ...interface{})
- func (p Log) Info(format string, args ...interface{})
- func (p Log) Success(format string, args ...interface{})
- func (p Log) Warning(format string, args ...interface{})
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableColor ¶
func DisableColor()
DisableColor strip colors from the singleton instance symbols
func Error ¶
func Error(format string, args ...interface{})
Error singleton method to log a string with an error symbol
func Fatal ¶
func Fatal(format string, args ...interface{})
Fatal singleton method to log a message and exit the program
func Info ¶
func Info(format string, args ...interface{})
Info singleton method to log a string with an info symbol
Types ¶
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
type Logger ¶
type Logger interface { Info(format string, args ...interface{}) Success(pattern string, args ...interface{}) Warning(pattern string, args ...interface{}) Error(pattern string, args ...interface{}) Errorf(pattern string, args ...interface{}) error Fatal(pattern string, args ...interface{}) EnableColor() DisableColor() }
func NewLoggerWithWriter ¶
NewLoggerWithWriter new logger with a specific writer
Click to show internal directories.
Click to hide internal directories.