RpcLogServiceResponder class

Exposes local logs to remote peers for diagnostics and remote control.

Provides:

  • subscribe(filter) — live stream of matching records
  • getHistory(count, filter) — query ring buffer
  • setMinLevel / setScopeLevel / clearScopeLevel / getConfig — remote control

This class provides the handler methods. The user registers them with their RPC endpoint manually (since we don't depend on codegen).

Constructors

RpcLogServiceResponder({required LogController source, RingBufferOutput? ringBuffer})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearScopeLevel(String scope) → void
Remove scope-specific level override.
getConfig() Map<String, dynamic>
Get current configuration snapshot.
getHistory({int count = 100, Map<String, dynamic>? filterJson}) List<Map<String, dynamic>>
Query the ring buffer for recent records.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setMinLevel(String levelName) → void
Change the minimum log level on the remote process.
setScopeLevel(String scope, String levelName) → void
Set scope-specific level override.
subscribe(Map<String, dynamic> filterJson) Stream<Map<String, dynamic>>
Returns a stream of log records matching filterJson. The caller should pipe this into an RPC server-streaming response.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited