Class LoggerWriterConfig
Config for the sink creation
Inherited Members
Namespace: Unity.Logging
Syntax
public class LoggerWriterConfig
Methods
AddSinkConfig(SinkConfiguration)
Add new sink configuration to the LoggerConfig
Declaration
public LoggerConfig AddSinkConfig(SinkConfiguration sinkConfig)
Parameters
Type | Name | Description |
---|---|---|
SinkConfiguration | sinkConfig | Configuration for sink to create |
Returns
Type | Description |
---|---|
LoggerConfig | Main logger config |
ResolveCaptureStackTrace(Nullable<Boolean>)
Resolves default setting for stack trace capture
Declaration
public bool ResolveCaptureStackTrace(bool? captureStackTrace)
Parameters
Type | Name | Description |
---|---|---|
Nullable<Boolean> | captureStackTrace | If this is null - default config's setting is used |
Returns
Type | Description |
---|---|
Boolean | Returns capture stack trace setting for this config |
ResolveMinLevel(Nullable<LogLevel>)
Resolves default setting for minimal log level
Declaration
public LogLevel ResolveMinLevel(LogLevel? minLevel)
Parameters
Type | Name | Description |
---|---|---|
Nullable<LogLevel> | minLevel | If this is null - default config's setting is used |
Returns
Type | Description |
---|---|
LogLevel | Returns minimal logging message setting for this config |
ResolveOutputTemplate(Nullable<FixedString512Bytes>)
Resolves default setting for output template
Declaration
public FixedString512Bytes ResolveOutputTemplate(FixedString512Bytes? outputTemplate)
Parameters
Type | Name | Description |
---|---|---|
Nullable<FixedString512Bytes> | outputTemplate | If this is null - default config's setting is used |
Returns
Type | Description |
---|---|
FixedString512Bytes | Returns output template setting for this config |