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, ...) (err error)
- func TestLogger(t *testing.T) *zap.Logger
- func WithContext(ctx context.Context, logger *zap.Logger) context.Context
- type LogFileOptions
Constants ¶
View Source
const ( NameBootNode = "BootNode" NameController = "Controller" NameDiscoveryService = "DiscoveryService" NameDutyScheduler = "DutyScheduler" 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" NameP2PStorage = "P2PStorage" NamePubsubTrace = "PubsubTrace" NameScoreInspector = "ScoreInspector" NameEventHandler = "EventHandler" NameDutyFetcher = "DutyFetcher" )
Variables ¶
This section is empty.
Functions ¶
func CapturePanic ¶ added in v1.1.0
func FromContext ¶
FromContext returns a logger from the context.
func SetGlobalLogger ¶
func SetGlobalLogger(levelName string, levelEncoderName string, logFormat string, fileOptions *LogFileOptions) (err error)
Types ¶
type LogFileOptions ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.