logconfig

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

README

logconfig

Configure logrus logger

Documentation

Index

Constants

View Source
const (
	FormatText = "text"
	FormatJSON = "json"
)

Variables

This section is empty.

Functions

func Configure

func Configure(options Options) (err error)

Configure - configures logrus using Options

func MustConfigure

func MustConfigure(options Options)

MustConfigure - configures logrus using Options or throws fatal on error

Types

type Options

type Options struct {
	Level        string `yaml:"level"`
	Format       string `yaml:"format"`
	Timestamp    bool   `yaml:"timestamp"`
	ReportCaller bool   `yaml:"reportCaller"`
	SplitOutput  bool   `yaml:"splitOutput"`
}

Jump to

Keyboard shortcuts

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