LogifyNet 1.0.0-beta02

This is a prerelease version of LogifyNet.
There is a newer version of this package available.
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
                    
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="LogifyNet" Version="1.0.0-beta02" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LogifyNet" Version="1.0.0-beta02" />
                    
Directory.Packages.props
<PackageReference Include="LogifyNet" />
                    
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 LogifyNet --version 1.0.0-beta02
                    
#r "nuget: LogifyNet, 1.0.0-beta02"
                    
#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 LogifyNet@1.0.0-beta02
                    
#: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=LogifyNet&version=1.0.0-beta02&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=LogifyNet&version=1.0.0-beta02&prerelease
                    
Install as a Cake Tool

πŸ“¦ 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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