Documentation ¶
Overview ¶
Package logz provides the structured log with the OpenTelemetry.
Example:
ctx := r.Context() // r is *http.Request logz.Infof(ctx, "info log. requestURL: %s", r.URL.String())
Index ¶
- 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 InitTracer()
- func SetProjectID(projectID string)
- func Warningf(ctx context.Context, format string, a ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetProjectID ¶
func SetProjectID(projectID string)
SetProjectID sets gcp project id to the logger
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
contrib
|
|
example
|
|
nethttp
Module
|
|
nethttptrace
Module
|
|
go111
module
|
|
internal
|
|
Click to show internal directories.
Click to hide internal directories.