Modular logging system for Lua with sections, filtering, and message grouping.

$ luarocks install loglua

LogLua is a modular and minimalist logging system for Lua that allows you to:
- Collect log, debug, and error messages in memory
- Organize logs by sections/categories for easy filtering
- Automatically group consecutive messages from the same section [x-y][section]
- Monitor logs in real-time with live mode
- Display logs in the console with optional section filters
- Save logs to files with timestamped headers
- Filter logs by single or multiple sections when displaying/saving
- Access built-in help documentation via log.help()

Features:
- Simple API: log(), log.add(), log.debug(), log.error()
- Section system: log.section(), log.inSection(), log.setDefaultSection()
- Filtering: log.show("section"), log.show({"sec1", "sec2"})
- Message grouping: consecutive messages from same section show as [1-3][section]
- Live mode: log.live(), log.unlive(), log.isLive() - show only new messages
- Debug mode: only show debug messages when activated
- Error tracking: automatic error counter
- Built-in help: log.help(), log.help("sections"), log.help("live"), log.help("api")

Versions

1.6-280 days ago(revision: 2)16 downloads
1.6-1143 days ago30 downloads
1.5-2143 days ago6 downloads
1.5-1176 days ago30 downloads
1.4-1176 days ago4 downloads
1.3-1176 days ago10 downloads
1.2-1176 days ago4 downloads
1.0-5206 days ago15 downloads
1.0-4206 days ago5 downloads
1.0-3206 days ago5 downloads
1.0-2206 days ago6 downloads
1.0-1206 days ago5 downloads

Dependencies

lua >= 5.4

Dependency for

DaviSystemLuaXML, LuaXML, PudimServer, PudimWeb, VMSL

Labels

Manifests