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-266 days ago(revision: 2)14 downloads
1.6-1129 days ago28 downloads
1.5-2129 days ago4 downloads
1.5-1161 days ago28 downloads
1.4-1161 days ago2 downloads
1.3-1162 days ago8 downloads
1.2-1162 days ago2 downloads
1.0-5192 days ago13 downloads
1.0-4192 days ago3 downloads
1.0-3192 days ago3 downloads
1.0-2192 days ago4 downloads
1.0-1192 days ago3 downloads

Dependencies

lua >= 5.4

Dependency for

DaviSystemLuaXML, LuaXML, PudimServer, PudimWeb, VMSL

Labels

Manifests