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 a system property to redirect jboss logs to slf4j #25

Closed
stevehu opened this issue Feb 8, 2017 · 0 comments
Closed

Add a system property to redirect jboss logs to slf4j #25

stevehu opened this issue Feb 8, 2017 · 0 comments
Assignees
Labels
enhancement Issue: Enhancement

Comments

@stevehu
Copy link
Contributor

stevehu commented Feb 8, 2017

As Undertow is using jboss logging and we are using slf4j with logback in our framework, we cannot see any log from Undertow even errors. In order to make Undertow use our slf4j and logback config, we need to add a system property in the command line or just add a line in Server.java.

I think the second option is much better as we always need it.

        System.setProperty("org.jboss.logging.provider", "slf4j");

In order to capture all the exceptions in ExceptionHandler, dispatch in the exception handler as suggested by Bill O'Neil.

@stevehu stevehu added the enhancement Issue: Enhancement label Feb 8, 2017
@stevehu stevehu self-assigned this Feb 8, 2017
@stevehu stevehu closed this as completed in 82ae0e5 Feb 8, 2017
stevehu added a commit that referenced this issue Feb 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issue: Enhancement
Projects
None yet
Development

No branches or pull requests

1 participant