Structured logging: call sites report a LoggerEvent to the installed ILoggerSink. The default sink prints [Component/memberId] message to stderr.
More...
|
| enum | CoreComponent {
Sequencer
, SequencerServer
, SequencerService
, ConsensusModule
,
ReplayerServer
, ReplayerService
, QueueRelay
, ReplayerStreamReceiver
,
Cluster
, ClusterProbe
} |
| | The components core itself logs as, each named after the class or process that reports. More...
|
| |
| enum | Severity { Info
, Warn
, Error
, Fault
} |
| | How bad it is. More...
|
| |
| enum | CoreEventCode {
Info
, MalformedIngressMessage
, ConsensusModuleError
, ServiceError
,
QueueBackpressure
, StaleActiveRecording
, QueueRecordingFailure
, AppliedLogTruncated
,
ControlReplyDropped
, GatewayPromotionFailed
, GatewayActivationTimeout
, ReplayDutyCycleFailure
,
ShutdownTimeout
, RelaySourceLost
, QueueUnresolved
, QueueGap
,
RecoveryStalled
, QueueStalled
, FirstFrameNotOne
, SnapshotRestoreFailed
,
SnapshotStoreFailed
, ClusterSessionError
, ClusterOfferFailed
, ClusterIpcFallback
} |
| | Core's anomaly classes: one per condition worth telling apart, plus Info for the routine lines that identify no anomaly at all. The same names as Java's and C++'s. More...
|
| |
|
| static void | Install (ILoggerSink sink) |
| | Installs the sink every subsequent call forwards to. The caller owns the sink's lifetime: a test's recording sink calls Reset before it goes out of scope.
|
| |
| static void | Reset () |
| | Restores the default sink, which prints to stderr.
|
| |
| static void | Info (Enum component, int? memberId, string format, params object[] args) |
| | Logs routine status, at Severity.Info under CoreEventCode.Info.
|
| |
| static void | Error (Enum component, Enum code, int? memberId, string format, params object[] args) |
| | Logs a fault the process carries on past, at Severity.Error.
|
| |
| static void | Fault (Enum component, Enum code, int? memberId, string format, params object[] args) |
| | Logs one it does not, at Severity.Fault: the caller stops or fences itself after this.
|
| |
| static void | Log (Enum component, Severity severity, Enum code, int? memberId, string format, params object[] args) |
| | The one call the others reach: formats args into format and hands the record to the installed sink.
|
| |
Structured logging: call sites report a LoggerEvent to the installed ILoggerSink. The default sink prints [Component/memberId] message to stderr.
Components and event codes are any enum, so a consumer declares its own beside CoreComponent and CoreEventCode; a value prints as its name.