Documentation ¶
Overview ¶
Package log supports structured and unstructured logging with levels.
Index ¶
- Constants
- func Debug(ctx context.Context, arg any)
- func Debugf(ctx context.Context, format string, args ...any)
- func Error(ctx context.Context, arg any)
- func Errorf(ctx context.Context, format string, args ...any)
- func Fatal(ctx context.Context, arg any)
- func Fatalf(ctx context.Context, format string, args ...any)
- func Info(ctx context.Context, arg any)
- func Infof(ctx context.Context, format string, args ...any)
- func SetLevel(v string)
- func Use(l Logger)
- func Warning(ctx context.Context, arg any)
- func Warningf(ctx context.Context, format string, args ...any)
- type Logger
- type Severity
Constants ¶
View Source
const ( SeverityDefault = Severity(iota) SeverityDebug SeverityInfo SeverityWarning SeverityError SeverityCritical )
Variables ¶
This section is empty.
Functions ¶
func Fatal ¶
Fatal logs arg, which can be a string or a struct, at the Critical level followed by exiting the program.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package log supports structured and unstructured logging with levels to GCP stackdriver.
|
Package log supports structured and unstructured logging with levels to GCP stackdriver. |
Click to show internal directories.
Click to hide internal directories.