Knightly submitted a new resource:
Write.lua - Simple logging library
Read more about this resource...
Write.lua - Simple logging library
This is a small logging library to make outputting different levels of messages in your Lua scripts easier. I'd suggest dropping this in the Lua\lib directory as a standard, but you can use it from anywhere.
It includes the ability to prefix messages with anything you want (like your script name) and output levels for Debug, Error, Warning, Info that can be toggled (and only show when you're at or above that logging level).
Usage:
local Write = require('lib/Write')
Write.prefix =...
Read more about this resource...