tiny.Logger
1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package tiny.Logger --version 1.0.0
NuGet\Install-Package tiny.Logger -Version 1.0.0
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="tiny.Logger" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add tiny.Logger --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: tiny.Logger, 1.0.0"
#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.
// Install tiny.Logger as a Cake Addin
#addin nuget:?package=tiny.Logger&version=1.0.0
// Install tiny.Logger as a Cake Tool
#tool nuget:?package=tiny.Logger&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
tiny.Logger
Most powerful, multithreaded file logger for high touch application written for .net 5
Features
- Thread safe file logger.
- Log shipping based on size.
- File Name support for custom formats
Installation
Install-Package tiny.Logger
Example 1
public static IHostBuilder CreateHostBuilder(string[] args) =>
Tiny.CreateDefaultBuilderAndTinyLogger(args).....
Example 2
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureTinyLogger().....
Customization from appsettings.json
"Logging": {
"LogLevel": {
"Default": "Trace",
"Microsoft": "Trace",
"Microsoft.Hosting.Lifetime": "Trace"
},
"options": {
"file": "MYLOGS$|DATE[dd_mmm]|$.log", <--- (1)
"path": "/var/logs/", <--- (2)
"size": 5242880 <--- (3)
}
},
- "file" ⇒ Name of file.
- available options
- $|DATE|$ = for date without format
- $|DATE[FORMAT]|$ = customize format as per your need e.g. MYLOG_$|DATE[dd_MMM_yyyy HH_mm]|$.log ⇒ MYLOG_DATE01_JAN_2021 10_45.log
- available options
- path: folder path for log file
- available options
- using environment variables support %temp%\logs ⇒ C:\Users...\AppData\Local\Temp
- available options
- size
- option default to 5242880 (5MB) in case of missing json
- if option is set to 0 means disable log shipping.
License
MIT
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. 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 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net5.0
- Microsoft.Extensions.configuration (>= 5.0.0)
- Microsoft.Extensions.configuration.commandline (>= 5.0.0)
- Microsoft.Extensions.configuration.environmentvariables (>= 5.0.0)
- Microsoft.Extensions.configuration.json (>= 5.0.0)
- Microsoft.Extensions.Hosting (>= 5.0.0)
- Microsoft.Extensions.Logging (>= 5.0.0)
- Microsoft.Extensions.Logging.console (>= 5.0.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on tiny.Logger:
Package | Downloads |
---|---|
tiny.WebApi
A Powerful WebApi written to ease up webapi development purely based on the configuration - supports MSSQL Server, PostgreSQL and Oracle databases. |
|
tiny.ImageHelper
A library for modifying key attributes for EMF file. Supports Modifying Font Color Background Color Convert to Black and white Convert to gray scale |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
8.0.0 | 246 | 11/28/2023 | |
6.0.6 | 135 | 10/6/2023 | |
6.0.5 | 172 | 8/31/2023 | |
6.0.4 | 1,106 | 11/24/2022 | |
6.0.3 | 576 | 9/16/2022 | |
6.0.2 | 959 | 8/4/2022 | |
6.0.1 | 1,110 | 2/20/2022 | |
6.0.0 | 483 | 12/25/2021 | |
5.0.6 | 480 | 3/16/2021 | |
5.0.5 | 408 | 3/12/2021 | |
5.0.4.4 | 455 | 3/12/2021 | |
5.0.4.3 | 429 | 2/26/2021 | |
5.0.4.3-alpha | 217 | 2/26/2021 | |
5.0.4.2 | 436 | 2/24/2021 | |
5.0.4.1 | 403 | 2/23/2021 | |
5.0.4.1-alpha | 297 | 2/23/2021 | |
5.0.4 | 353 | 2/23/2021 | |
5.0.3 | 396 | 2/23/2021 | |
5.0.2 | 372 | 2/23/2021 | |
5.0.1 | 374 | 2/22/2021 | |
5.0.0 | 378 | 2/22/2021 | |
1.0.3 | 391 | 2/21/2021 | |
1.0.2 | 376 | 2/21/2021 | |
1.0.0 | 356 | 2/20/2021 | |
0.0.1-alpha | 284 | 2/20/2021 |
Production ready version