Interface
Logger
interface Logger
Module: Neo.Logging
Assembly: Neo.Logging.Abstractions.dll
Source file: Contracts.rvn
Provider-neutral structured logging. Providers receive state and its formatter separately.
Derived interfaces
Documented types in this API reference. Indirect relationships are marked.
Implementing types
Documented types in this API reference. Indirect relationships are marked.
- DefaultLogger<T> (indirect)
- NullLogger
- NullLogger<T> (indirect)
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.
Defined by Logger.BeginScope · Required implementation (no default).
IsEnabled(level: LogLevel) -> bool
Reports whether this severity may be written. None is never enabled.
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.
Defined by Logger.Log · Required implementation (no default).