logrus

package
v0.14.0-openmesh Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package logrus provides an adapter to the openmesh log.Logger interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(logger logrus.FieldLogger, options ...Option) log.Logger

NewLogger returns a Go kit log.Logger that sends log events to a logrus.Logger.

Types

type Logger

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

func (Logger) Log

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

type Option

type Option func(*Logger)

func WithLevel

func WithLevel(level logrus.Level) Option

WithLevel configures a logrus logger to log at level for all events.

Jump to

Keyboard shortcuts

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