lualogging
lualogging copied to clipboard
Use a table for file descriptors reuse.
The current method for file descriptors reuse was leaking file descriptors when more than one file logger was used since you used a local variable which updated the last used file.
If you happen to log on one file then on another you ended opening a file again.
This patch uses a global table to maintain the file descriptor for each open file.