log.lua
log.lua copied to clipboard
[Feature] Log flushing and Love2D integration
Implemented log flusing: it stores logs and writes to logfile on demand. This helps performance because file operations are locking. At cost of memory.
Using love.filesystem if exist instead io.
Localized standard functions for efficiency.
Added debug info layer, in case this module get extended or used as a component of other module without rewriting things up.
Saw #12. It gives me an idea of having more returns, so it can be passed on some JSON module.