Documentation
¶
Overview ¶
Package log implements event handlers for logging.
Index ¶
- func Debugf(ctx context.Context, format string, args ...interface{})
- func Errorf(ctx context.Context, format string, args ...interface{})
- func FromContext(ctx context.Context) *slog.Logger
- func Infof(ctx context.Context, format string, args ...interface{})
- func NewContext(ctx context.Context, l *slog.Logger) context.Context
- func NewGoogleCloudHandler(level slog.Leveler) slog.Handler
- func Warningf(ctx context.Context, format string, args ...interface{})
- type Attrs
- func (as Attrs) Debugf(ctx context.Context, format string, args ...interface{})
- func (as Attrs) Errorf(ctx context.Context, format string, args ...interface{})
- func (as Attrs) Infof(ctx context.Context, format string, args ...interface{})
- func (as Attrs) Warningf(ctx context.Context, format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGoogleCloudHandler ¶
NewGoogleCloudHandler returns a Handler that outputs JSON for the Google Cloud logging service. See https://cloud.google.com/logging/docs/agent/logging/configuration#special-fields for treatment of special fields.
Types ¶
Click to show internal directories.
Click to hide internal directories.