AsyncOutput Class¶
Definition¶
namespace Sharplog.Outputs
- Implements: System.IDisposable
-
Base class for async outputs.
Constructors¶
| Name |
|---|
| AsyncOutput(int, string, LevelContainer) |
Properties¶
| Name | Type | GET | SET |
|---|---|---|---|
| SuspendTime | int | ||
| Format | string | ||
| Levels | LevelContainer |
Events¶
| Name | Delegate | Modifiers |
|---|---|---|
| OnStart | EventHandler | protected |
| OnDispose | EventHandler | protected |
Methods¶
| Name | Modifiers | Returns |
|---|---|---|
| Start() | public |
|
| WriteNonBlocking((string, Log)[]) | public abstract |
Inherited methods¶
| Name | Modifiers | Returns |
|---|---|---|
| Write(string, Log) | public |
|
| Dispose() | public |
Constructors¶
AsyncOutput(int, string, LevelContainer)¶
-
Initializes a new instance of the AsyncOutput class.
Parameter¶
suspendTimeint ·500- The time the output waits until it checks for new logs in ms.
formatstring ·null- The format.
levelsLevelContainer ·null- The level settings.
Properties¶
SuspendTime¶
- Type: int
-
Gets or sets the time the output waits until it checks for new logs in ms.
Events¶
OnStart¶
- Delegate: EventHandler
-
Event called when the output gets started.
OnDispose¶
- Delegate: EventHandler
-
Event called when the output gets disposed.
Methods¶
Start()¶
-
Starts this instance.
WriteNonBlocking((string, Log)[])¶
-
Writes the specified formatted log.
Parameter¶
logs(string, Log)[] ·- The logs.