BotMine›Developer Docs›Logging & JSON
Lua Addon SDK
Logging & JSON
Write logs and work with JSON data.
Logging
lualogger.info("Info") logger.warn("Warning") logger.error("Error") logger.debug("Debug")
Use logs to make addon state, errors, and review-relevant behavior understandable.
JSON
lualocal encoded = json.encode({ ok = true, count = 3 }) local decoded = json.decode(encoded)
Methods:
json.encode(value)json.decode(value)