storagelog

package
v0.0.0-...-79ba347 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 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 any) 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

func StorageIDField(id []byte) zap.Field

StorageIDField returns logger's field for storage ID.

func StorageTypeField

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