Minor logging class improvements

This commit is contained in:
Stone-Red-Code
2021-04-16 20:37:56 +02:00
parent 031c04510b
commit 6d2222d207
34 changed files with 113 additions and 138 deletions
+1 -8
View File
@@ -188,14 +188,7 @@ https://www.nuget.org/packages/Stone_Red-C-Sharp-Utilities
True
```
### Stone_Red_Utilities.Logging
#### Constructors:
* Logger
* Initializes the logger with the default format.
* Parameters: `LogTarget logTarg`, `string defaultFormat`
* Example usage:
```cs
Logger logger = new Logger(LogTarget.Console, "{<dateTime>:HH:mm:ss} | {<level>,-7} | {<source>,-15} | {<message>}");
```
#### Constructor:
* Logger
* Initializes the logger with the default format and a file path.
* Parameters: `LogTarget logTarg`, `string file`, `string defaultFormat`