Documentation ¶
Index ¶
- Variables
- func Debugf(format string, args ...interface{})
- func Errf(format string, args ...interface{})
- func FromCtx(ctx *gear.Context) gearLogging.Log
- func Infof(format string, args ...interface{})
- func Panicf(format string, args ...interface{})
- func SetKV(ctx context.Context, key string, val interface{})
- func SrvLog(format string, args ...interface{}) gearLogging.Log
- func Warningf(format string, args ...interface{})
- func WithAccessLogger(ctx *gear.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var AccessLogger = gearLogging.New(os.Stdout)
AccessLogger is used for access log
View Source
var Logger = gearLogging.New(os.Stderr)
Logger is used for the server.
Functions ¶
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf produce a "Debug" log into the Logger.
func Errf ¶
func Errf(format string, args ...interface{})
Errf produce a "Error" log into the Logger.
func FromCtx ¶
func FromCtx(ctx *gear.Context) gearLogging.Log
FromCtx retrieve the Log instance for the AccessLogger.
func Infof ¶
func Infof(format string, args ...interface{})
Infof produce a "Informational" log into the Logger.
func Panicf ¶
func Panicf(format string, args ...interface{})
Panicf produce a "Emergency" log into the Logger.
func SrvLog ¶
func SrvLog(format string, args ...interface{}) gearLogging.Log
SrvLog returns a Log with kind of server.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.