logrus

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: Apache-2.0 Imports: 4 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(c *Config, logger *logrus.Logger) error

Configure sets up the logrus logger

Types

type Config

type Config struct {
	LogLevel string
}

Config is used to configure a logrus logger from CLI flags.

func (*Config) FlagSet

func (c *Config) FlagSet() *pflag.FlagSet

FlagSet creates a new flag set based on the current config

Jump to

Keyboard shortcuts

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