Documentation
¶
Index ¶
- func CriticalObj(ctx context.Context, label string, obj interface{})
- func Criticalf(ctx context.Context, format string, a ...interface{})
- func DebugObj(ctx context.Context, label string, obj interface{})
- func Debugf(ctx context.Context, format string, a ...interface{})
- func ErrorObj(ctx context.Context, label string, obj interface{})
- func Errorf(ctx context.Context, format string, a ...interface{})
- func InfoObj(ctx context.Context, label string, obj interface{})
- func Infof(ctx context.Context, format string, a ...interface{})
- func SetGCPLogger(projectID, label string) func(*gin.Context)
- func SetSpanContext(r *http.Request, label string) (context.Context, func())
- func WarningObj(ctx context.Context, label string, obj interface{})
- func Warningf(ctx context.Context, format string, a ...interface{})
- type Frame
- type LogLevel
- type SpanContext
- type StackTrace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CriticalObj ¶
func SetGCPLogger ¶
SetGCPLogger is middleware to set logger with trace in the context. In this middleware, projectID is required. If you don't set projectID, this middleware panics.
func WarningObj ¶
Types ¶
type SpanContext ¶
func GetSpanContext ¶
func GetSpanContext(ctx context.Context) SpanContext
type StackTrace ¶
type StackTrace []Frame
func (*StackTrace) String ¶
func (st *StackTrace) String() string
Click to show internal directories.
Click to hide internal directories.