logging

package
v0.0.0-...-fefde71 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(options Options) error

Init initializes the logging instance.

Types

type Options

type Options 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"`
}

Options is the logging options.

Jump to

Keyboard shortcuts

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