logas

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: MIT Imports: 9 Imported by: 0

README

Logas

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultLogger pipes.ContextKey = "logas logger ctx"

DefaultLogger context key for logger

View Source
var LoggingClient pipes.ContextKey = "logas client ctx"

LoggingClient logging client

View Source
var SpanKey pipes.ContextKey = "logas span ctx"

SpanKey context key for span ID

View Source
var TraceKey pipes.ContextKey = "logas trace ctx"

TraceKey context key for trace ID

Functions

func Criticalf

func Criticalf(ctx context.Context, format string, args ...interface{})

Criticalf logs a message at CRITICAL level

func Debugf

func Debugf(ctx context.Context, format string, args ...interface{})

Debugf logs a message at DEBUG level

func Errorf

func Errorf(ctx context.Context, format string, args ...interface{})

Errorf logs a message at ERROR level

func Infof

func Infof(ctx context.Context, format string, args ...interface{})

Infof logs a message at INFO level

func Middleware

func Middleware(ctx context.Context, w http.ResponseWriter, r *http.Request, next pipes.Next)

Middleware middleware to capture request context for Logas

func Warningf

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

Warningf logs a message at WARNING level

Types

This section is empty.

Jump to

Keyboard shortcuts

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