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.debugto return immediately when debug mode is inactive (zero overhead).
- Resolved an issue where
-
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 logluaQuick 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()