Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Owns one host’s bounded log queue, filtering policy, and sink collection.

API: engine
Implements: System.IDisposable
Inherits: object
Project: Inno.Core.Logging

public sealed class Inno.Core.Logging.LogRouter : System.IDisposable
Kind Element Description
Constructors LogRouter.Constructor Creates an isolated logging router with an explicit delivery policy.
Events LogRouter.sinkFailed Occurs after a failing sink has been quarantined from this router.
Methods LogRouter.CreateLogger Creates a category-bound logger for one engine service or extension type.
Methods LogRouter.Dispatch Queues an immutable entry under the configured worker or inline delivery policy.
Methods LogRouter.Dispose Drains pending entries, stops the worker, and disposes every sink still owned by this router.
Methods LogRouter.EnterScope Binds this router to the current asynchronous execution context.
Methods LogRouter.Flush Blocks until every entry enqueued before this call has reached the current sink snapshot.
Methods LogRouter.RegisterSink Registers a sink to receive future entries from this router.
Methods LogRouter.SetMinimumLevel Sets the lowest severity accepted by this router.
Methods LogRouter.TryDispatch Attempts to queue an immutable entry, draining it inline when the host has no logging worker.
Methods LogRouter.UnregisterSink Removes a sink from subsequent delivery snapshots without disposing it.