logging

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseLevel

func ParseLevel(l string) (slog.Level, bool)

Types

type Flags

type Flags struct {
	Enabled bool
	Level   string
	Format  string
	Target  string
}

type Format

type Format int
const (
	DefaultLogFormat Format = iota
	TextLogFormat
	JsonLogFormat
)

func ParseFormat

func ParseFormat(h string) (Format, bool)

func (Format) String

func (h Format) String() string

type Params

type Params struct {
	Enabled flagParams.BoolVar
	Level   flagParams.StringVar
	Format  flagParams.StringVar
	Target  flagParams.StringVar
}

Jump to

Keyboard shortcuts

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