logger

package
v0.0.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package logger is used to extract logging configuration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(config Config) logrus.FieldLogger

Types

type Config

type Config struct {
	Level     string
	Formatter Formatter
}

func (Config) Validate

func (c Config) Validate() error

type Formatter

type Formatter string

Formatter defines output formatter

const (
	TextFormatter Formatter = "TXT"
	JSONFormatter Formatter = "JSON"
)

Format of outputs

Jump to

Keyboard shortcuts

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