storagelog

package
v1.22.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddressField

func AddressField(addr interface{}) zap.Field

AddressField returns logger's field for object address.

Address should be type of *object.Address or string.

func OpField

func OpField(op string) zap.Field

OpField returns logger's field for operation type.

func StorageIDField added in v0.34.0

func StorageIDField(id []byte) zap.Field

StorageIDField returns logger's field for storage ID.

func StorageTypeField added in v0.34.0

func StorageTypeField(typ string) zap.Field

StorageTypeField returns logger's field for storage type.

func Write

func Write(logger *logger.Logger, fields ...zap.Field)

Write writes message about storage engine's operation to logger.

Types

This section is empty.

Jump to

Keyboard shortcuts

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