Documentation
¶
Index ¶
- Constants
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Separator(args ...interface{})
- func Separatorf(format string, args ...interface{})
- func Success(args ...interface{})
- func Successf(format string, args ...interface{})
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- type CliLoggerFormatter
- type SeparatorFormatter
- type Symbol
- type Symbols
Constants ¶
View Source
const ( DEBUG = "[DEBUG] " WARN = "[WARN] " INFO = "[INFO] " SUCCESS = "[SUCCESS] " ERROR = "[ERROR] " FATAL = "[FATAL] " )
View Source
const REMOVELEVEL = 10
REMOVELEVEL logrus stack level is 9, should be removed from stack trace
View Source
const ROOTCALLER = "main.main"
ROOTCALLER should be main proc
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf log info with color,symbol and format for a notice
func Error ¶
func Error(args ...interface{})
Error log error with color adn symbol for a warning event
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf log error with color,symbol and format for a warning event
func Fatal ¶
func Fatal(args ...interface{})
Fatal log fatal with color and symbol for a fatal event
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf log fatal with color,symbol and format for a fatal event
func Infof ¶
func Infof(format string, args ...interface{})
Infof log info with color,symbol and format for a notice
func Separator ¶
func Separator(args ...interface{})
Separator prints a line for separating as green color
func Separatorf ¶
func Separatorf(format string, args ...interface{})
Separatorf prints a line for separating as green color
func Success ¶
func Success(args ...interface{})
Success log success with color and symbol, for a success operation
Types ¶
type CliLoggerFormatter ¶
type CliLoggerFormatter struct {
// contains filtered or unexported fields
}
type SeparatorFormatter ¶
type SeparatorFormatter struct{}
Click to show internal directories.
Click to hide internal directories.