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

API Browser

Method

Log

abstract virtual func Log<TState>(level: LogLevel, eventId: EventId, state: TState, error: Error?, formatter: (TState, Error?) -> string) -> ()

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

Defined by Logger.Log · Required implementation (no default).

Interface implementation: Required implementation (no default).

Writes an entry. Disabled default loggers do not evaluate formatter. Error is the optional neoCLR diagnostic value; no stack is captured implicitly.

Parameters

Name Type Description
level LogLevel
eventId EventId
state TState
error Error?
formatter Function

Return value

()