logging

package
v0.0.0-...-df727ae Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitWithConfig

func InitWithConfig(config Config) error

InitWithConfig will initialize the logger with config.

Types

type Config

type Config struct {
	// Level is the log level. options: debug, info, warn, error, dpanic, panic, fatal (default: info)
	Level string `json:"level" yaml:"level"`

	// Format is the log format. options: json, console (default: console)
	Format string `json:"format" yaml:"format"`
}

Config defines the config for logging.

Jump to

Keyboard shortcuts

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