Expand description
IDE-internal logging system.
ooLogger hooks into the log crate and fans each record out to:
- A fixed-capacity in-memory ring buffer (
LogBuffer). - A
tokio::sync::broadcastchannel so the log view receives live entries.
The file sink is handled by simplelog::WriteLogger via
simplelog::CombinedLogger; this module only manages the in-process buffer.
Structs§
- InMemory
Logger - LogBuffer
- Fixed-capacity FIFO that keeps the most recent N entries.
- LogEntry
- One captured log record.
- LogState
- Shared state between the custom logger and any subscribers (e.g.
LogView).
Functions§
- init_
combined_ logger - Initialise a combined logger:
simplelog::WriteLoggertolog_fileplus the in-memory logger. Returns theLogStatehandle to thread into the app.