๐Ÿ“˜ Aquila.SmartLogger

Aquila.SmartLogger is a zero-configuration, developer-friendly logging library for .NET that eliminates repetitive try/catch blocks and enforces clean, consistent, contextual logging across your application.

Write business logic.
Aquila handles errors, context, logs, and even live streaming to your dashboard.

โœจ Features

๐Ÿ“ฆ Installation (NuGet)

dotnet add package Aquila.SmartLogger
Install-Package Aquila.SmartLogger

๐Ÿ’ป Local / Offline Logging

This mode logs events only to your local logs folder. No live dashboard is used.


AquilaLogger.Init(
    logDirectory: "logs",
    apiKey: "AQUILA_SECRET_2026",
    liveOn: false
);
  

All logs will be written in logs/<appname>.log as plain text.

๐ŸŒ Live Logging (Dashboard)

Enable live logs in your dashboard using your unique API key. Signup at: SmartLogger Signup

AquilaLogger.Init(
    logDirectory: "logs",
    apiKey: "AQUILA_SECRET_2026_XXXXXX",
    liveOn: true
);

All logs will be pushed live to your dashboard, so you can monitor apps remotely.

๐Ÿงช Full Example

using System;
using Aquila.SmartLogger.Core;

class Program {
    static void Main() {
        AquilaLogger.Init(
            appName: "DemoApp",
            logFilePath: "logs/app.log",
            apiKey: "AQUILA_SECRET_2026_9CC8EF",
            liveOn: true
        );

        AquilaLogger.MinimumLevel = LogLevel.Debug;

        AquilaLogger.Info("Application started");
        AquilaLogger.Debug("Debug message");
        AquilaLogger.Success("Business operation successful");
        AquilaLogger.Warn("Potential issue detected");
        AquilaLogger.Error("Handled exception");
        AquilaLogger.Fatal("Critical failure");

        AquilaLogger.Safe(() => {
            int result = 10/2;
            AquilaLogger.Success($"Division result: {result}");
        }, "Division failed");

        Console.WriteLine("Logger demo finished");
    }
}

๐ŸŽš Log Levels

LevelUsage
DebugDevelopment diagnostics
InfoApplication flow
SuccessBusiness success events
WarnPotential issues
ErrorHandled exceptions
FatalCritical failures

๐Ÿง  Why Safe() Is Powerful

// Traditional try/catch
try {
    DoSomething();
} catch(Exception ex) {
    logger.LogError(ex, "Failed");
}

// Aquila Safe wrapper
AquilaLogger.Safe(() => {
    DoSomething();
}, "Failed");

๐Ÿงฉ Extensibility

public interface ILogTarget {
    void Write(LogEntry entry);
}

Targets: Database, HTTP API, Webhooks, Cloud logging, Slack, Email, etc.

๐Ÿ“„ License

MIT License ยฉ 2026 Aquila Innovations