lualogging icon indicating copy to clipboard operation
lualogging copied to clipboard

Use a table for file descriptors reuse.

Open pulento opened this issue 6 years ago • 0 comments

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.

pulento avatar Oct 25 '18 15:10 pulento