Summary
Write to the log an async sink when running the default command (or web server / hosted process).
Write to a sync sink when not running the default command.
- Assembly
- Rocket
.Surgery .Extensions .Serilog .dll - Namespace
- Rocket
.Surgery .Conventions - Containing Type
- Serilog
Host Builder Extensions
Syntax
public static ISerilogConventionContext WriteToAsyncConditionally(this ISerilogConventionContext context, Action<LoggerSinkConfiguration> register)
Parameters
Name | Type | Description |
---|---|---|
context | I |
The context. |
register | Action |
The action to register the sink. |
Return Value
Type | Description |
---|---|
I |