Class LoggerWriterConfig
Config for the sink creation
Inherited Members
Namespace: Unity.Logging
Assembly: Unity.Logging.dll
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(bool?)
Resolves default setting for stack trace capture
Declaration
public bool ResolveCaptureStackTrace(bool? captureStackTrace)
Parameters
Type | Name | Description |
---|---|---|
bool? | captureStackTrace | If this is null - default config's setting is used |
Returns
Type | Description |
---|---|
bool | Returns capture stack trace setting for this config |
ResolveMinLevel(LogLevel?)
Resolves default setting for minimal log level
Declaration
public LogLevel ResolveMinLevel(LogLevel? minLevel)
Parameters
Type | Name | Description |
---|---|---|
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(FixedString512Bytes?)
Resolves default setting for output template
Declaration
public FixedString512Bytes ResolveOutputTemplate(FixedString512Bytes? outputTemplate)
Parameters
Type | Name | Description |
---|---|---|
FixedString512Bytes? | outputTemplate | If this is null - default config's setting is used |
Returns
Type | Description |
---|---|
FixedString512Bytes | Returns output template setting for this config |