Class SinkConfiguration
SinkConfiguration stores all the data needed for Sink to work and what is most important - knows how to create and initialize the sink.
Inherited Members
Namespace: Unity.Logging.Sinks
Assembly: solution.dll
Syntax
public abstract class SinkConfiguration
Constructors
| Name | Description |
|---|---|
| SinkConfiguration(LoggerWriterConfig, FormatterStruct, bool?, LogLevel?, FixedString512Bytes?) | Base sink configuration constructor. |
Fields
| Name | Description |
|---|---|
| CaptureStackTraces | True if this logger needs stack traces. |
| LogFormatter | Formatter that controls how to represent the log message: plain text, json, etc.. |
| MinLevel | Minimal level that sink will log. |
| OutputTemplate | Output template for the message. Ignored in structured logging case. |
Methods
| Name | Description |
|---|---|
| CreateAndInitializeSinkInstance<T>(Logger, SinkConfiguration) | Standard way of creation and init the sink |
| CreateSinkInstance(Logger) | Function that creates specific SinkSystem using this configuration. |