logging

package
v0.0.0-...-1b5374a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccessLogger = gearLogging.New(os.Stdout)

AccessLogger is used for access log

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 SetKV

func SetKV(ctx context.Context, key string, val interface{})

SetKV ...

func SrvLog

func SrvLog(format string, args ...interface{}) gearLogging.Log

SrvLog returns a Log with kind of server.

func Warningf

func Warningf(format string, args ...interface{})

Warningf produce a "Warning" log into the Logger.

func WithAccessLogger

func WithAccessLogger(ctx *gear.Context) error

WithAccessLogger ...

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL