Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having a background text file writer instead of the compressor with binary log writer #58

Open
gh-andre opened this issue Dec 21, 2021 · 0 comments

Comments

@gh-andre
Copy link

NanoLog is a very impressive logger that does what many other loggers don't quite achieve, like writing logged data directly into string buffers instead of using various intermediate variables, or capturing time stamps at the time of logging instead of at the time of writing into a log sink to ensure their order (even though the decompressor has to order them via a heap).

However, as impressive as many of these features are, many applications need a text log immediately available, without having to run a decompressor, and I think it would help many applications out there if NanoLog could, instead of running a compressor thread, run a text writer thread, which would dequeue string buffers with log data, order them by time (maybe within some limited time frame window), format log entries as text and write to a text log file.

Along the same lines, NanoLog could also provide a method for applications to call on their own thread, which would do all of the above and return a formatted log line or a log buffer that applications could use any way they see fit, such as dumping them to a file, network, etc.

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

No branches or pull requests

1 participant