common

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodeToLevel

func CodeToLevel(code codes.Code) logrus.Level

CodeToLevel maps a grpc response code to a logging level.

func LogEntry added in v0.3.0

func LogEntry(pkg, stream string) *logrus.Entry

LogEntry returns a *logrus.Entry tagged with a package/stream, mirroring the shape of the core's NamedLogger() but backed by this example's own logrus logger.

func Logrus added in v0.3.0

func Logrus() *logrus.Logger

Logrus returns the shared *logrus.Logger used by this example transport's gRPC middleware. Consumers modelling their own logrus-based transport can use this as a reference for wiring a self-owned logging backend.

Types

This section is empty.

Jump to

Keyboard shortcuts

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