logging

package
v0.0.0-...-faec4b7 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Level    logrus.Level `yaml:"level" json:"level"`
	Filename string       `yaml:"filename" json:"filename"`
}

Config for the log

type Logger

type Logger struct {
	*logrus.Logger
}

Logger for the application

func New

func New(config *Config) (*Logger, error)

New creates a new instance of logger with the given configuration

Jump to

Keyboard shortcuts

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