Add README.md

This commit is contained in:
glax 2024-02-01 21:50:40 +01:00
parent d066bea807
commit ee39c87659
2 changed files with 14 additions and 0 deletions

View File

@ -12,6 +12,10 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
</ItemGroup>
<PropertyGroup>
<None Include="..\README.md" Pack="true" PackagePath="\"/>
</PropertyGroup>
<PropertyGroup>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>

10
README.md Normal file
View File

@ -0,0 +1,10 @@
# GlaxLogger
## Usage
```csharp
Logger logger = new (filteredLevel: LogLevel.Trace, outputFolderPath: "logs");
logger.Log(LogLevel.Information, "Content");
```
**Defaults**
* `filteredLevel = LogLevel.Warning`
* `outputFolderPath = Environment.CurrentDirectory`