FileOutput Class¶
Definition¶
namespace Sharplog.Outputs
- Object
- Output
- AsyncOutput
- FileOutput
-
Output writing asynchronously to a file.
Constructors¶
| Name |
|---|
| FileOutput() |
| FileOutput(string, int, string, LevelContainer) |
Properties¶
| Name | Type | GET | SET |
|---|---|---|---|
| Format | string | ||
| Levels | LevelContainer | ||
| SuspendTime | int | ||
| Path | string |
Inherited Methods¶
| Name | Modifiers | Returns |
|---|---|---|
| Write(string, Log) | public |
|
| Start() | public |
|
| WriteNonBlocking((string, Log)[]) | public |
Constructors¶
FileOutput()¶
-
Initializes a new instance of the FileOutput class.
FileOutput(string, int, string, LevelContainer)¶
-
Initializes a new instance of the FileOutput class.
Parameter¶
pathstring ·".log"- The path.
suspendTimeint ·500- The suspend time between logs in ms.
formatstring ·null- The format.
levelsLevelContainer ·null- The level settings.
Properties¶
Path¶
- Type: string
-
Gets or sets the path the output should log to.