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 logging support for converters #801

Merged
merged 1 commit into from Apr 18, 2019

Conversation

robertpanzer
Copy link
Member

This PR is a proposal for adding logging support for converters.
If a converter implements the interface org.asciidoctor.log.Logging, then Asciidoctor will set a org.asciidoctor.log.LogHandler via Logging.setLogHandler(logHandler) after the converter was created.

The AbstractConverter already implements this interface and provides the method log(LogRecord) to log.

@ysb33r
Copy link
Member

ysb33r commented Apr 18, 2019

LGTM

@robertpanzer
Copy link
Member Author

Awesome, thanks! It corresponds mostly to what you proposed on gitter.

@robertpanzer
Copy link
Member Author

I'll try to do a new RC with this.

@robertpanzer robertpanzer merged commit 8dd3887 into asciidoctor:master Apr 18, 2019
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

2 participants