package
0.0.2
Repository: https://github.com/osbuild/logging.git
Documentation: pkg.go.dev

# README

echo

A temporary echo proxy to log/slog. Only used for the transition period until our projects are fully migrated. Please keep in mind this is an incomplete implementation, only functions used in osbuild project are present.

How to use

package main

import (
	"github.com/labstack/echo/v4"

	echoproxy "github.com/osbuild/logging/pkg/echo"
)

func main() {
	e := echo.New()
	e.Logger = echoproxy.NewProxy()

	// ...
}

For a full web example run:

go run github.com/osbuild/logging/internal/example_web/

# Functions

No description provided by the author
NewProxy creates a new Proxy for the standard logger.
NewProxyFor creates a new Proxy for a particular logger.
No description provided by the author

# Structs

Proxy is a proxy type for logrus.Logger.

# Interfaces

Logger defines the logging interface.