log

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLoggerMiddleware

func CreateLoggerMiddleware(next http.Handler) http.Handler

func Init

func Init(c Config)

Types

type Config

type Config struct {
	Level zerolog.Level
}

type ConfigSchema

type ConfigSchema struct {
	Level string `json:"level" env:"OAUTH2PROXY_LOG_LEVEL" envDefault:"Info"`
}

func (*ConfigSchema) CreateConfig

func (s *ConfigSchema) CreateConfig() Config

func (*ConfigSchema) Validate

func (s *ConfigSchema) Validate() error

type Key

type Key struct{}

Jump to

Keyboard shortcuts

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