Back to Home

Logar

A lightweight, flexible management library for Go applications

Features

📝

Logging

Multiple log levels with context-aware logging and flexible output options

Server Actions

Define and trigger custom server-side functions remotely with strongly-typed parameters

📊

Analytics

Track service metrics, request latency, error rates, and more

🚩

Feature Flags

Toggle and control application features through runtime-configurable flags

⚙️

Globals

Modify configuration values dynamically without requiring service restart

🌐

Web UI

Comprehensive web interface for managing logs, actions, and analytics

Quick Start

package main

import "github.com/Lexographics/logar"

func main() {
  app, err := logar.New(
    logar.WithAppName("My Awesome App"),
    logar.AddModel("System Logs", "system-logs"),
    logar.AddModel("User Activity", "user-activity"),
  )
  if err != nil {
    // Handle error
  }

  app.GetLogger().Info("system-logs", "App Started", "startup")
}