kitlog

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

README

kitlog

Package kitlog provides a log.Logger implementation. It is a simple wrapper around the logrus package.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	*logrus.Entry
}

Logger is a logrus wrapper for go-kit/log

func NewLogger

func NewLogger(l *logrus.Entry) Logger

NewLogger returns a new Logger instance. It uses logrus as a backend.

func (Logger) Log

func (l Logger) Log(keyvals ...interface{}) error

Log implements the go-kit/log.Logger interface. It uses logrus as a backend.

Jump to

Keyboard shortcuts

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