logging

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: GPL-3.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

View Source
const (
	NameBootNode         = "BootNode"
	NameController       = "Controller"
	NameDiscoveryService = "DiscoveryService"
	NameDutyController   = "DutyController"
	NameEthClient        = "EthClient"
	NameMetricsHandler   = "MetricsHandler"
	NameOperator         = "Operator"
	NameP2PNetwork       = "P2PNetwork"
	NameSignerStorage    = "SignerStorage"
	NameValidator        = "Validator"
	NameWSServer         = "WSServer"

	NameBadgerDBLog       = "BadgerDBLog"
	NameBadgerDBReporting = "BadgerDBReporting"
	NameCreateThreshold   = "CreateThreshold"
	NameDiscoveryV5Logger = "DiscoveryV5Logger"
	NameExportKeys        = "ExportKeys"
	NameOnFork            = "OnFork"
	NameP2PStorage        = "P2PStorage"
	NamePubsubTrace       = "PubsubTrace"
	NameScoreInspector    = "ScoreInspector"
)

Variables

This section is empty.

Functions

func BenchLogger

func BenchLogger(b *testing.B) *zap.Logger

func FromContext

func FromContext(ctx context.Context) *zap.Logger

FromContext returns a logger from the context.

func SetGlobalLogger

func SetGlobalLogger(levelName string, levelEncoderName string, logFormat string) error

func TestLogger

func TestLogger(t *testing.T) *zap.Logger

func WithContext

func WithContext(ctx context.Context, logger *zap.Logger) context.Context

WithContext returns a context with the logger.

Types

This section is empty.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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