Skip to content

Releases: pessoa736/loglua

v1.6-2

01 Mar 20:24

Choose a tag to compare

Full Changelog: v1.5...v1.6-2

LogLua v1.6-2 Release

This version solidifies LogLua as a stable, modular, and production-ready logging library, with a major focus on static typing and visual documentation.

Key Changes

  • Bug Fixes:

    • Resolved an issue where require("loglua") would automatically trigger the help menu.
    • Fixed a string manipulation error when loading the module via LuaRocks/Path objects.
    • Fixed log.debug to return immediately when debug mode is inactive (zero overhead).
  • Documentation & Visualization:

    • New modular documentation in the docs folder featuring Mermaid flowcharts detailing Auto Grouping, Live Mode, and the internal architecture.
    • Main README refactored into a Quick Start focusing on what sets LogLua apart from a standard print().
  • Developer Experience (DX):

    • Full support for LuaLS (Lua Language Server) via definition files in library. Now includes autocomplete, type checking, and inline examples.
    • Help API (log.help()) refactored with lazy loading for topics and better CLI integration.
  • Infrastructure & Testing:

    • Expanded test suite to 21 cases using Busted, now covering section filters, ANSI colors, and custom headers.
    • Updated Rockspec (v1.6-2) to correctly include all submodules, constants, and utilities.

Installation

luarocks install loglua

Quick Example

local log = require("loglua")

log("Message 1")
log("Message 2") -- Automatically grouped under [1-2]

log.section("network")
log("Connected to server")

log.show()

v1.5 - Multi-language Support

26 Nov 13:41

Choose a tag to compare

What's New

🌍 Multi-language Help System

  • Full help documentation in Portuguese, English, and Spanish
  • log.setLanguage('pt'|'en'|'es') to switch languages
  • log.getLanguage() to check current language

💡 Welcome Hint

  • First log.show() call displays a localized tip about log.help() and language options

📚 Documentation

  • New README.es.md (Spanish)
  • Language switcher links in all READMEs (🇺🇸 | 🇧🇷 | 🇪🇸)

Installation

luarocks install loglua

Quick Start

local log = require('loglua')
log.setLanguage('en')  -- or 'pt', 'es'
log('Hello world')
log.show()
log.help()