logging

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: Apache-2.0 Imports: 2 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 interface {
	Info(...interface{})
	Infof(string, ...interface{})
	Debug(...interface{})
	Warn(...interface{})
	Error(...interface{})
	Errorf(string, ...interface{})
}

Logger represents the generic logger interface

type Logrus

type Logrus struct {
	// contains filtered or unexported fields
}

Logrus represents the logrus logger

func NewLogrus

func NewLogrus(level string) *Logrus

NewLogrus creates a new logrus instance

func (*Logrus) Get

func (l *Logrus) Get(context string) *logrus.Entry

Get returns a logrus instance based on the specific context

Jump to

Keyboard shortcuts

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