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 Access(ctx context.Context, r http.Request, statusCode, size int, ...)
- 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 StartCollectingSeverity(ctx context.Context) context.Context
- 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
func StartCollectingSeverity ¶ added in v0.3.0
StartCollectingSeverity starts collectiong severity
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.