Class LoggerSyncModeConfig
Use to set the synchronization mode of the logger
Inherited Members
Namespace: Unity.Logging
Syntax
public class LoggerSyncModeConfig
Properties
Get
Returns currently set minimal level
Declaration
public SyncMode Get { get; }
Property Value
Type | Description |
---|---|
SyncMode |
Methods
FatalIsSync()
Sets SyncMode to FatalIsSync
All messages are processed asynchronous, after they were logged. But if Fatal message is logged - log is flushed.
Use this option if you want speed, but also want to make sure logs are not lost in case of Fatal error
Declaration
public LoggerConfig FatalIsSync()
Returns
Type | Description |
---|---|
LoggerConfig | LoggerConfig for other settings to set |
FullAsync()
Sets SyncMode to FullAsync
All messages are processed asynchronous, after they were logged.
This is the fastest way, but can lead to lost messages in case of crashes
Declaration
public LoggerConfig FullAsync()
Returns
Type | Description |
---|---|
LoggerConfig | LoggerConfig for other settings to set |
FullSync()
Sets SyncMode to FullSync
All messages are processed immediately. Slowest mode, but all messages are guaranteed to be logged
Declaration
public LoggerConfig FullSync()
Returns
Type | Description |
---|---|
LoggerConfig | LoggerConfig for other settings to set |
Set(SyncMode)
Sets minimal level of logs
Declaration
public LoggerConfig Set(SyncMode minLevel)
Parameters
Type | Name | Description |
---|---|---|
SyncMode | minLevel |
Returns
Type | Description |
---|---|
LoggerConfig | LoggerConfig for other settings to set |