package logger

import "github.com/oslokommune/okctl/pkg/middleware/logger"

Package logger implements a logging middleware

Index

Functions

func Logging

func Logging(logger *logrus.Logger, endpointTag string, serviceTags ...string) endpoint.Middleware

Logging returns a logging middleware

Types

type AnonymizeRequestLogger

type AnonymizeRequestLogger interface {
	AnonymizeRequest(request interface{}) interface{}
}

AnonymizeRequestLogger can be implemented by the request types that want to conceal items from the logs

type AnonymizeResponseLogger

type AnonymizeResponseLogger interface {
	AnonymizeResponse(response interface{}) interface{}
}

AnonymizeResponseLogger can be implemented by the response types that want to conceal things from the logs

Source Files

logger.go

Version
v0.0.106 (latest)
Published
Oct 21, 2022
Platform
linux/amd64
Imports
7 packages
Last checked
18 hours ago

Tools for package owners.