logrusadapter

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package logrusadapter provides yala adapter which leverages logrus module (https://github.com/sirupsen/logrus).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	Logger LogrusLogger
}

Adapter is a logger.Adapter implementation, which is using `logrus` module (https://github.com/sirupsen/logrus).

func (Adapter) Log

func (a Adapter) Log(ctx context.Context, entry logger.Entry)

Log logs the entry using logrus module.

type LogrusLogger added in v0.19.0

type LogrusLogger interface {
	WithField(key string, value interface{}) *logrus.Entry
	WithFields(logrus.Fields) *logrus.Entry
	WithError(error) *logrus.Entry
	Log(lvl logrus.Level, args ...interface{})
}

LogrusLogger is either *logrus.Logger or *logrus.Entry.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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