Documentation ¶
Index ¶
- Constants
- Variables
- func Criticalf(ctx context.Context, format string, a ...interface{})
- func Debugf(ctx context.Context, format string, a ...interface{})
- func Errorf(ctx context.Context, format string, a ...interface{})
- func Infof(ctx context.Context, format string, a ...interface{})
- func Initialize(name, projID string) func(http.Handler) http.Handler
- func SetDebug()
- func SetLoglevel(level int)
- func Warningf(ctx context.Context, format string, a ...interface{})
- func WithContext(r *http.Request, label string) (context.Context, func())
- type LoggerParam
- type Writer
Constants ¶
View Source
const ( DEBUG = iota INFO WARNING ERROR CRITICAL )
Variables ¶
View Source
var Structure = structure{}
View Source
var Text = text{}
Functions ¶
func SetLoglevel ¶ added in v0.0.2
func SetLoglevel(level int)
Types ¶
type LoggerParam ¶
Click to show internal directories.
Click to hide internal directories.