log

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	logrus.Logger
}

Logger embed logrus Logger struct

func New

func New() *Logger

New create a new logger using the StdOutFormatter and the level specified in the env variable LOG_LEVEL

func (*Logger) SetLevel

func (log *Logger) SetLevel(logLevel string)

SetLevel change the level of the logger

type StdOutFormatter

type StdOutFormatter struct {
}

StdOutFormatter struct

func (*StdOutFormatter) Format

func (f *StdOutFormatter) Format(entry *logrus.Entry) ([]byte, error)

Format change the default output format to incluse the log level

Jump to

Keyboard shortcuts

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