Documentation ¶
Index ¶
- func Debug(i ...interface{})
- func Debugf(format string, args ...interface{})
- func Debugj(j JSON)
- func DisableColor()
- func EnableColor()
- func Error(i ...interface{})
- func Errorf(format string, args ...interface{})
- func Errorj(j JSON)
- func Fatal(i ...interface{})
- func Fatalf(format string, args ...interface{})
- func Fatalj(j JSON)
- func Info(i ...interface{})
- func Infof(format string, args ...interface{})
- func Infoj(j JSON)
- func Output() io.Writer
- func Panic(i ...interface{})
- func Panicf(format string, args ...interface{})
- func Panicj(j JSON)
- func Prefix() string
- func Print(i ...interface{})
- func Printf(format string, args ...interface{})
- func Printj(j JSON)
- func SetHeader(h string)
- func SetLevel(v Lvl)
- func SetOutput(w io.Writer)
- func SetPrefix(p string)
- func Warn(i ...interface{})
- func Warnf(format string, args ...interface{})
- func Warnj(j JSON)
- type JSON
- type Logger
- func (l *Logger) Color() *color.Color
- func (l *Logger) Debug(i ...interface{})
- func (l *Logger) Debugf(format string, args ...interface{})
- func (l *Logger) Debugj(j JSON)
- func (l *Logger) DisableColor()
- func (l *Logger) EnableColor()
- func (l *Logger) Error(i ...interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Errorj(j JSON)
- func (l *Logger) Fatal(i ...interface{})
- func (l *Logger) Fatalf(format string, args ...interface{})
- func (l *Logger) Fatalj(j JSON)
- func (l *Logger) Info(i ...interface{})
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) Infoj(j JSON)
- func (l *Logger) Level() Lvl
- func (l *Logger) Output() io.Writer
- func (l *Logger) Panic(i ...interface{})
- func (l *Logger) Panicf(format string, args ...interface{})
- func (l *Logger) Panicj(j JSON)
- func (l *Logger) Prefix() string
- func (l *Logger) Print(i ...interface{})
- func (l *Logger) Printf(format string, args ...interface{})
- func (l *Logger) Printj(j JSON)
- func (l *Logger) SetHeader(h string)
- func (l *Logger) SetLevel(v Lvl)
- func (l *Logger) SetOutput(w io.Writer)
- func (l *Logger) SetPrefix(p string)
- func (l *Logger) Warn(i ...interface{})
- func (l *Logger) Warnf(format string, args ...interface{})
- func (l *Logger) Warnj(j JSON)
- type Lvl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(i ...interface{})
Debug calls Output to print debug message to the standard logger.
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf calls Output to print debug message to the standard logger. Arguments are handled in the manner of fmt.Printf.
func Debugj ¶
func Debugj(j JSON)
Debugj calls Output to print debug message to the standard logger.
func Error ¶
func Error(i ...interface{})
Error calls Output to print error message to the standard logger.
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf calls Output to print error message to the standard logger. Arguments are handled in the manner of fmt.Printf.
func Errorj ¶
func Errorj(j JSON)
Errorj calls Output to print error message to the standard logger.
func Fatal ¶
func Fatal(i ...interface{})
Fatal calls Output to print fatal message to the standard logger.
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf calls Output to print fatal message to the standard logger. Arguments are handled in the manner of fmt.Printf.
func Fatalj ¶
func Fatalj(j JSON)
Fatalj calls Output to print fatal message to the standard logger.
func Info ¶
func Info(i ...interface{})
Info calls Output to print info message to the standard logger.
func Infof ¶
func Infof(format string, args ...interface{})
Infof calls Output to print info message to the standard logger. Arguments are handled in the manner of fmt.Printf.
func Panic ¶
func Panic(i ...interface{})
Panic calls Output to print panic message to the standard logger.
func Panicf ¶
func Panicf(format string, args ...interface{})
Panicf calls Output to print panic message to the standard logger. Arguments are handled in the manner of fmt.Printf.
func Panicj ¶
func Panicj(j JSON)
Panicj calls Output to print panic message to the standard logger.
func Printf ¶
func Printf(format string, args ...interface{})
Printf calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Printf.
func Warn ¶
func Warn(i ...interface{})
Warn calls Output to print warning message to the standard logger.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger defines logger information.
func (*Logger) Debug ¶
func (l *Logger) Debug(i ...interface{})
Debug calls Output to print debug message to the standard logger.
func (*Logger) Debugf ¶
Debugf calls Output to print debug message to the standard logger. Arguments are handled in the manner of fmt.Printf.
func (*Logger) DisableColor ¶
func (l *Logger) DisableColor()
DisableColor disables colorized output.
func (*Logger) Error ¶
func (l *Logger) Error(i ...interface{})
Error calls Output to print error message to the standard logger.
func (*Logger) Errorf ¶
Errorf calls Output to print error message to the standard logger. Arguments are handled in the manner of fmt.Printf.
func (*Logger) Fatal ¶
func (l *Logger) Fatal(i ...interface{})
Fatal calls Output to print fatal message to the standard logger.
func (*Logger) Fatalf ¶
Fatalf calls Output to print fatal message to the standard logger. Arguments are handled in the manner of fmt.Printf.
func (*Logger) Info ¶
func (l *Logger) Info(i ...interface{})
Info calls Output to print info message to the standard logger.
func (*Logger) Infof ¶
Infof calls Output to print info message to the standard logger. Arguments are handled in the manner of fmt.Printf.
func (*Logger) Panic ¶
func (l *Logger) Panic(i ...interface{})
Panic calls Output to print panic message to the standard logger.
func (*Logger) Panicf ¶
Panicf calls Output to print panic message to the standard logger. Arguments are handled in the manner of fmt.Printf.
func (*Logger) Print ¶
func (l *Logger) Print(i ...interface{})
Print calls Output to print to the standard logger.
func (*Logger) Printf ¶
Printf calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Printf.
func (*Logger) Warn ¶
func (l *Logger) Warn(i ...interface{})
Warn calls Output to print warning message to the standard logger.