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.5-132 days ago26 downloads
1.4-132 days ago0 downloads
1.3-132 days ago6 downloads
1.2-132 days ago0 downloads
1.0-562 days ago11 downloads
1.0-462 days ago1 download
1.0-362 days ago1 download
1.0-262 days ago1 download
1.0-162 days ago1 download

Dependencies

lua >= 5.4

Dependency for

DaviSystemLuaXML, LuaXML, PudimWeb

Labels

Manifests