LogifyNet 1.0.0-beta02
See the version list below for details.
dotnet add package LogifyNet --version 1.0.0-beta02
NuGet\Install-Package LogifyNet -Version 1.0.0-beta02
<PackageReference Include="LogifyNet" Version="1.0.0-beta02" />
<PackageVersion Include="LogifyNet" Version="1.0.0-beta02" />
<PackageReference Include="LogifyNet" />
paket add LogifyNet --version 1.0.0-beta02
#r "nuget: LogifyNet, 1.0.0-beta02"
#:package LogifyNet@1.0.0-beta02
#addin nuget:?package=LogifyNet&version=1.0.0-beta02&prerelease
#tool nuget:?package=LogifyNet&version=1.0.0-beta02&prerelease
π¦ LogifyNet
A lightweight, configurable, and multi-level logging library for .NET applications.
π‘ Overview
LogifyNet is a simple yet powerful logging library designed for .NET developers who want easy log management without the complexity of large frameworks like Serilog or NLog.
It supports:
Logging to files with automatic folder creation ποΈ
Configurable log levels (Info, Warning, Error)
Timestamped and formatted messages
Configuration via appsettings.json
Lightweight integration (no dependencies on heavy frameworks)
π Installation Add the package via the .NET CLI:
dotnet add package LogifyNet --version 1.0.0-beta02
Or using the NuGet Package Manager:
Install-Package LogifyNet -Version 1.0.0-beta02
βοΈ Configuration You can configure the logger directly in code or through an external configuration file such as appsettings.json. Example: appsettings.json
{
"LoggerConfig": {
"FilePath": "logs/app.log",
"IncludeTimestamp": true,
"DateFormat": "yyyy-MM-dd HH:mm:ss"
}
}
π‘ The folder logs will be automatically created if it doesnβt exist. π§© Usage Example Program.cs
using Microsoft.Extensions.Configuration;
using Logify;
class Program
{
static void Main()
{
// Load configuration
var config = new ConfigurationBuilder()
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
.Build();
var loggerConfig = new LoggerConfig
{
LogFilePath = config["LoggerConfig:FilePath"] ?? "logs/app.log",
IncludeTimestamp = bool.Parse(config["LoggerConfig:IncludeTimestamp"] ?? "true"),
DateFormat = config["LoggerConfig:DateFormat"] ?? "yyyy-MM-dd HH:mm:ss"
};
// Initialize logger
var logger = new Logger(loggerConfig);
// Write logs
logger.Info("Application started successfully.");
logger.Warning("Memory usage is higher than expected.");
logger.Error("An unexpected error occurred.");
}
}
π§ Features
| Feature | Description |
| -------------------------- | ----------------------------------------------- |
| πͺΆ Lightweight | Minimal dependencies, fast and simple |
| π§± File-based logging | Automatically writes to a local file |
| π Timestamp support | Adds timestamps to each log entry |
| βοΈ Configurable | Supports `appsettings.json` or code-based setup |
| π Auto directory creation | Automatically creates the log folder if missing |
| π§Ύ Multi-level logging | Supports Info, Warning, and Error levels |
π§° Log Levels
| Level | Description | Example |
| --------- | ------------------------------- | ------------------------------------- |
| `Info` | General application information | `logger.Info("App started")` |
| `Warning` | Non-critical issues | `logger.Warning("High memory usage")` |
| `Error` | Critical errors or exceptions | `logger.Error("File not found")` |
π Default Output Example
[2025-11-09 20:12:33] [Info] Application started successfully.
[2025-11-09 20:12:33] [Warning] Memory usage is higher than expected.
[2025-11-09 20:12:33] [Error] An unexpected error occurred.
The log file will be created at:
logs/app.log
π License
MIT License
π¬ Author Developed with β€οΈ for clean, structured, and efficient .NET applications. Developed by Abdelwaheb AMMAR
| 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 was computed. 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. |
-
net8.0
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.0)
- Microsoft.Extensions.Configuration.Json (>= 8.0.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on LogifyNet:
| Package | Downloads |
|---|---|
|
DbEasy
DbEasy - .NET library to simplify database interaction (SQL queries, transactions, connections). DbEasy - Une librairie .NET pour simplifier l'interaction avec les bases de données (requêtes SQL, transactions, connexions). |
|
|
DbEasy.ORM
A lightweight ORM extension built on top of DbEasy β simple, fast, and entity-based data management. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0.1 | 2,758 | 12/3/2025 |
| 1.0.0-rc02 | 1,247 | 12/2/2025 |
| 1.0.0-rc01 | 179 | 11/15/2025 |
| 1.0.0-beta03 | 428 | 11/12/2025 |
| 1.0.0-beta02 | 284 | 11/11/2025 |
| 1.0.0-beta01 | 224 | 11/9/2025 |