Documentation ¶
Index ¶
- Variables
- func Critical(args ...interface{})
- func Criticalf(format string, args ...interface{})
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Dump(v ...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 NewLogger(category string, formatter logging.Formatter, extraCalldepth int) *logging.Logger
- func Notice(args ...interface{})
- func Noticef(format string, args ...interface{})
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func Warning(args ...interface{})
- func Warningf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultWebFormatter = logging.MustStringFormatter(
"%{color}[%{level:.3s}] %{time:2006/01/02 - 15:04:05} | %{shortfile:s} | %{shortfunc:s} | %{id:06x}%{color:reset} %{message}",
)
DefaultWebFormatter for gin web log
View Source
var Logger = NewLogger("", DefaultWebFormatter, 0)
Logger are dispard
Functions ¶
func Critical ¶
func Critical(args ...interface{})
Critical logs a message using CRITICAL as log level.
func Criticalf ¶
func Criticalf(format string, args ...interface{})
Criticalf logs a message using CRITICAL as log level.
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf logs a message using DEBUG as log level.
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf logs a message using ERROR as log level.
func Fatal ¶
func Fatal(args ...interface{})
Fatal is equivalent to l.Critical(fmt.Sprint()) followed by a call to os.Exit(1).
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf is equivalent to l.Critical followed by a call to os.Exit(1).
func Infof ¶
func Infof(format string, args ...interface{})
Infof logs a message using INFO as log level.
func Noticef ¶
func Noticef(format string, args ...interface{})
Noticef logs a message using NOTICE as log level.
func Panic ¶
func Panic(args ...interface{})
Panic is equivalent to l.Critical(fmt.Sprint()) followed by a call to panic().
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.