TimespanLogging Types
TimespanLogging.Events.CPULoadAverages
TimespanLogging.Events.CoreMetrics
TimespanLogging.Events.DebugMetrics
TimespanLogging.Events.EventSaturation
TimespanLogging.Events.FullMetrics
TimespanLogging.Events.IDMetrics
TimespanLogging.Events.LogWindow
TimespanLogging.Events.MemoryFree
TimespanLogging.Events.TimelineMetrics
TimespanLogging.LocalEventLog
TimespanLogging.MultiEventLog
TimespanLogging.NoOpLog
Log Sink Types
TimespanLogging.MultiEventLog
— TypeMultiEventLog
Processes events immediately, generating multiple log streams. Multiple consumers may register themselves in the MultiEventLog
, and when accessed, log events will be provided to all consumers. A consumer is simply a function or callable struct which will be called with an event when it's generated. The return value of the consumer will be pushed into a log stream dedicated to that consumer. Errors thrown by consumers will be caught and rendered, but will not otherwise interrupt consumption by other consumers, or future consumption cycles. An error will result in nothing
being appended to that consumer's log.
TimespanLogging.LocalEventLog
— TypeLocalEventLog
Stores events in a process-local array. Accessing the logs is all-or-nothing; if multiple consumers call get_logs!
, they will get different sets of logs.
TimespanLogging.NoOpLog
— TypeNoOpLog
Disables event logging entirely.
Built-in Event Types
TimespanLogging.Events.CoreMetrics
— TypeCoreMetrics
Tracks the timestamp, category, and kind of the Event
object generated by log events.
TimespanLogging.Events.IDMetrics
— TypeIDMetrics
Tracks the ID of Event
objects generated by log events.
TimespanLogging.Events.TimelineMetrics
— TypeTimelineMetrics
Tracks the timeline of Event
objects generated by log events.
TimespanLogging.Events.FullMetrics
— TypeFullMetrics
Tracks the full Event
object generated by log events.
TimespanLogging.Events.CPULoadAverages
— TypeCPULoadAverages
Monitors the CPU load averages.
TimespanLogging.Events.MemoryFree
— TypeMemoryFree
Monitors the percentage of free system memory.
TimespanLogging.Events.EventSaturation
— TypeEventSaturation
Tracks the compute saturation (running tasks) per-processor.
TimespanLogging.Events.DebugMetrics
— TypeDebugging metric, used to log event start/finish via @debug
.
TimespanLogging.Events.LogWindow
— TypeLogWindow
Aggregator that prunes events to within a given time window.