logging

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64

func Base64(b []byte) fmt.Stringer

func Debug

func Debug(logger Logger, params ...any)

Debug is a workaround to reduce memory allocation when debug is disabled. Indeed, the fabric logger performs an operation that allocate memory before checking the log level.

func Identifier

func Identifier(f any) fmt.Stringer

func Init

func Init(config logging.Config)

func Keys

func Keys[K comparable, V any](m map[K]V) fmt.Stringer

func Prefix

func Prefix(id string) fmt.Stringer

func Printable

func Printable(id string) fmt.Stringer

Types

type Config

type Config = logging.Config

Logger provides logging API

type Logger

type Logger = logging.Logger

Logger provides logging API

func DeriveDriverLogger

func DeriveDriverLogger(logger Logger, prefix string, networkID string, channel string, namespace string) Logger

func DriverLogger

func DriverLogger(prefix string, networkID string, channel string, namespace string) Logger

func DriverLoggerFromPP

func DriverLoggerFromPP(prefix string, id string) Logger

func GetLogger

func GetLogger(params ...string) (Logger, error)

func MustGetLogger

func MustGetLogger(params ...string) Logger

type MockLogger

type MockLogger = logging.MockLogger

Jump to

Keyboard shortcuts

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