Frontmatec.Extensions.Logging.File
2.0.0
dotnet add package Frontmatec.Extensions.Logging.File --version 2.0.0
NuGet\Install-Package Frontmatec.Extensions.Logging.File -Version 2.0.0
<PackageReference Include="Frontmatec.Extensions.Logging.File" Version="2.0.0" />
<PackageVersion Include="Frontmatec.Extensions.Logging.File" Version="2.0.0" />
<PackageReference Include="Frontmatec.Extensions.Logging.File" />
paket add Frontmatec.Extensions.Logging.File --version 2.0.0
#r "nuget: Frontmatec.Extensions.Logging.File, 2.0.0"
#:package Frontmatec.Extensions.Logging.File@2.0.0
#addin nuget:?package=Frontmatec.Extensions.Logging.File&version=2.0.0
#tool nuget:?package=Frontmatec.Extensions.Logging.File&version=2.0.0
Frontmatec.Logging
Custom logging extensions for .NET applications.
Frontmatec.Extensions.Logging.Console
Simple console logger with clean output formatting.
Installation
dotnet add package Frontmatec.Extensions.Logging.Console
Usage
builder.Logging.AddFrontmatecConsole();
Frontmatec.Extensions.Logging.File
File-based logger with rolling file support and customizable file naming.
Installation
dotnet add package Frontmatec.Extensions.Logging.File
Usage
builder.Logging.AddFrontmatecFile();
Or with options:
builder.Logging.AddFrontmatecFile(options =>
{
options.FileName = "logs/app.log";
options.FileSizeLimit = "10MB";
options.RollOnFileSizeLimit = true;
options.RetainedFileCountLimit = 5;
});
Configuration
{
"Logging": {
"LogLevel": {
"Default": "Information"
},
"File": {
"FileName": "logs/app.log",
"FileSizeLimit": "10MB",
"RollOnFileSizeLimit": true,
"RetainedFileCountLimit": 5
}
}
}
Advanced Configuration
{
"Logging": {
"File": {
"FileName": "logs/app-%APP_INSTANCE_ID%.log",
"FileSizeLimit": "10MB",
"RollOnFileSizeLimit": true,
"RetainedFileCountLimit": 5,
"AuditLog": true
}
}
}
FileName
Log file path. Defaults to {EntryAssemblyName}.log in the application directory.
- Non-rooted paths are resolved relative to
AppContext.BaseDirectory - Supports environment variables using standard Windows/Linux syntax (e.g.,
%AppData%\logs\app.log):%APP_INSTANCE_ID%- Unique 12-character hash generated from the application location and command-line arguments%APP_PID%- Current process ID%DOTNET_ENVIRONMENT%- Runtime environment name (Development, Staging, Production, etc.). Defaults to "Production" if not set
FileSizeLimit
Maximum file size before rolling. Default: "1MB"
Supported formats: "10KB", "5MB", "1GB", or plain numbers (treated as MB)
RollOnFileSizeLimit
Enable automatic file rolling when size limit is reached. Default: true
When enabled, the current log file is renamed with a numeric suffix and a new file is created.
RetainedFileCountLimit
Number of rolled log files to retain. Default: 1
Rolled files are named with incremental suffixes (e.g., app-1.log, app-2.log, app-3.log)
AuditLog
Enable appending a hash (###signatureBase64) to each logentry to make log entries tamper resistant.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Frontmatec.Runtime (>= 2.0.0)
- Microsoft.Extensions.Logging.Configuration (>= 8.0.0)
-
net8.0
- Frontmatec.Runtime (>= 2.0.0)
- Microsoft.Extensions.Logging.Configuration (>= 8.0.0)
-
net9.0
- Frontmatec.Runtime (>= 2.0.0)
- Microsoft.Extensions.Logging.Configuration (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.0 | 127 | 5/11/2026 |
| 1.0.21 | 3,217 | 11/20/2025 |
| 1.0.20 | 445 | 11/20/2025 |
| 1.0.19 | 1,536 | 6/12/2025 |
| 1.0.18 | 427 | 6/12/2025 |
| 1.0.17 | 2,344 | 3/11/2025 |
| 1.0.16 | 270 | 3/11/2025 |
| 1.0.15 | 344 | 3/10/2025 |
| 1.0.14 | 328 | 3/6/2025 |
| 1.0.12 | 338 | 3/6/2025 |
| 1.0.11 | 326 | 3/6/2025 |
| 1.0.10 | 276 | 12/10/2024 |
| 1.0.9 | 215 | 12/10/2024 |
| 1.0.8 | 2,065 | 2/29/2024 |
| 1.0.7 | 1,456 | 9/8/2023 |
| 1.0.6 | 884 | 9/8/2023 |
| 1.0.5 | 1,571 | 11/15/2022 |
| 1.0.4 | 1,360 | 10/7/2022 |
| 1.0.3 | 1,232 | 10/7/2022 |
| 1.0.2 | 1,356 | 3/7/2022 |