PowerShellSink.Emit method
Emits a log event by formatting it and invoking the callback action.
public void Emit(LogEvent logEvent)
parameter | description |
---|---|
logEvent | The log event to emit. |
Exceptions
exception | condition |
---|---|
ArgumentNullException | Thrown if logEvent is null. |
Remarks
This method formats the log event using the specified text formatter and invokes the callback with the formatted message.
See Also
- class PowerShellSink
- namespace Kestrun.Logging.Sinks