Frontmatec.Extensions.Logging.Console 1.0.21

dotnet add package Frontmatec.Extensions.Logging.Console --version 1.0.21
                    
NuGet\Install-Package Frontmatec.Extensions.Logging.Console -Version 1.0.21
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Frontmatec.Extensions.Logging.Console" Version="1.0.21" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Frontmatec.Extensions.Logging.Console" Version="1.0.21" />
                    
Directory.Packages.props
<PackageReference Include="Frontmatec.Extensions.Logging.Console" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Frontmatec.Extensions.Logging.Console --version 1.0.21
                    
#r "nuget: Frontmatec.Extensions.Logging.Console, 1.0.21"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Frontmatec.Extensions.Logging.Console@1.0.21
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Frontmatec.Extensions.Logging.Console&version=1.0.21
                    
Install as a Cake Addin
#tool nuget:?package=Frontmatec.Extensions.Logging.Console&version=1.0.21
                    
Install as a Cake Tool

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
    }
  }
}
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)

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.0.21 339 11/20/2025
1.0.20 330 11/20/2025
1.0.19 1,354 6/12/2025
1.0.18 433 6/12/2025
1.0.17 2,335 3/11/2025
1.0.16 277 3/11/2025
1.0.15 359 3/10/2025
1.0.14 321 3/6/2025
1.0.12 321 3/6/2025
1.0.11 323 3/6/2025
1.0.10 267 12/10/2024
1.0.9 208 12/10/2024
1.0.8 2,240 2/29/2024
1.0.7 1,192 9/8/2023
1.0.6 681 9/8/2023
1.0.5 1,379 11/15/2022
1.0.4 1,064 10/7/2022
1.0.3 1,004 10/7/2022
1.0.2 1,139 3/7/2022
1.0.1 1,000 12/2/2021
1.0.0 1,000 11/15/2021
0.0.2 988 11/3/2021
0.0.1 1,014 5/26/2021