Documentation ¶
Index ¶
- Constants
- func BenchLogger(b *testing.B) *zap.Logger
- func CapturePanic(logger *zap.Logger)
- func FromContext(ctx context.Context) *zap.Logger
- func SetGlobalLogger(levelName string, levelEncoderName string, logFormat string, ...) error
- func TestLogger(t *testing.T) *zap.Logger
- func WithContext(ctx context.Context, logger *zap.Logger) context.Context
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" NameConnHandler = "ConnHandler" 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 CapturePanic ¶ added in v1.1.0
func FromContext ¶
FromContext returns a logger from the context.
func SetGlobalLogger ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.