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-222 days ago(revision: 2)9 downloads
1.6-185 days ago27 downloads
1.5-285 days ago3 downloads
1.5-1117 days ago27 downloads
1.4-1117 days ago1 download
1.3-1117 days ago7 downloads
1.2-1117 days ago1 download
1.0-5147 days ago12 downloads
1.0-4147 days ago2 downloads
1.0-3147 days ago2 downloads
1.0-2148 days ago3 downloads
1.0-1148 days ago2 downloads

Dependencies

lua >= 5.4

Dependency for

DaviSystemLuaXML, LuaXML, PudimServer, PudimWeb, VMSL

Labels

Manifests