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

Add support for asynchronous logging #27

Merged
merged 6 commits into from
Dec 14, 2016
Merged

Add support for asynchronous logging #27

merged 6 commits into from
Dec 14, 2016

Conversation

flimzy
Copy link
Contributor

@flimzy flimzy commented Nov 30, 2016

This adds support for asynchronous logging, so that log attempts are not blocking. Further (and most important), this adds a Flush() method, which can be used to ensure that any queued log messages are sent.

This functionality is heavily influenced by the async operation of the logrus-graylog plugin.

Without this functionality, there is no way to ensure that all logs have been sent when the program exits, possibly leading to the final log(s) being lost when a program exits or crashes.

@coveralls
Copy link

Coverage Status

Coverage decreased (-4.1%) to 82.596% when pulling 7221715 on flimzy:async into f1b8721 on evalphobia:master.

4 similar comments
@coveralls
Copy link

Coverage Status

Coverage decreased (-4.1%) to 82.596% when pulling 7221715 on flimzy:async into f1b8721 on evalphobia:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-4.1%) to 82.596% when pulling 7221715 on flimzy:async into f1b8721 on evalphobia:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-4.1%) to 82.596% when pulling 7221715 on flimzy:async into f1b8721 on evalphobia:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-4.1%) to 82.596% when pulling 7221715 on flimzy:async into f1b8721 on evalphobia:master.

@evalphobia evalphobia self-assigned this Dec 6, 2016
@evalphobia evalphobia merged commit d5bbafe into evalphobia:master Dec 14, 2016
@evalphobia
Copy link
Owner

Thanks! ✌️

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.

None yet

3 participants