Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Interface

Logger<T>

interface Logger<T>

Module: Neo.Logging
Assembly: Neo.Logging.Abstractions.dll
Source file: Contracts.rvn

Inherits: Logger

A logger whose category is associated with T.

Implementing types

Documented types in this API reference. Indirect relationships are marked.

Methods

3 items
BeginScope<TState>(state: TState) -> Disposable? Begins a provider-owned scope. Dispose the returned handle to end it; null means unsupported. The foundation forwards scope state but supplies no ambient async scope storage. Inherited from Logger.BeginScope · Defined by Logger.BeginScope · Required implementation (no default).
IsEnabled(level: LogLevel) -> bool Reports whether this severity may be written. None is never enabled. Inherited from Logger.IsEnabled · Defined by Logger.IsEnabled · Required implementation (no default).
Log<TState>(level: LogLevel, eventId: EventId, state: TState, error: Error?, formatter: (TState, Error?) -> string) -> () Writes an entry. Disabled default loggers do not evaluate formatter. Error is the optional neoCLR diagnostic value; no stack is captured implicitly. Inherited from Logger.Log · Defined by Logger.Log · Required implementation (no default).