logging

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StructuredLoggingConfig

type StructuredLoggingConfig struct {
	// contains filtered or unexported fields
}

func NewStructuredLogging

func NewStructuredLogging() *StructuredLoggingConfig

NewStructuredLogging configures slog to use structured logging as default.

func (*StructuredLoggingConfig) Apply

func (config *StructuredLoggingConfig) Apply(_ *govalin.App)

func (*StructuredLoggingConfig) LogLevel

func (config *StructuredLoggingConfig) LogLevel(logLevel slog.Level) *StructuredLoggingConfig

func (*StructuredLoggingConfig) Name

func (config *StructuredLoggingConfig) Name() string

func (*StructuredLoggingConfig) OnInit

func (config *StructuredLoggingConfig) OnInit(_ *govalin.Config)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL