Skip to content

Conversation

@gphg
Copy link

@gphg gphg commented Aug 14, 2023

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.

gphg added 4 commits August 14, 2023 13:18
Implemeted log flusing: it stores logs and writes to logfile on demand.
This helps performance because file operations are locking.

Using `love.filesystem` if exist instead `io`.
For API usage, log functions return string.
@gphg
Copy link
Author

gphg commented Aug 20, 2023

Saw #12. It gives me an idea of having more returns, so it can be passed on some JSON module.

* It stores string to its entries, even if its `outfile` is not truthy.
* Flush emptied out the entries even if `outfile` is not truthy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant