logger

package
v0.0.0-...-168a2c3 Latest Latest
Warning

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

Go to latest
Published: May 30, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() *logrus.Logger

Get returns logger instance.

func GetLevel

func GetLevel(l string) logrus.Level

GetLevel returns logrus.Level string representation.

func Init

func Init(custom *logrus.Logger)

Init sets or creates logger instance.

func SetDSN

func SetDSN(value string)

SetDSN for sentry logger

func SetLevel

func SetLevel(l string)

SetLevel sets logrus.Level.

Types

type Instance

type Instance struct {
	*logrus.Entry
}

func MakeInstance

func MakeInstance() Instance

func (*Instance) SetName

func (i *Instance) SetName(host string)

Jump to

Keyboard shortcuts

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