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

JBoss integration issues: cannot read URL property with JBoss LogManager and formatting issues #247

Open
dje06 opened this issue Apr 19, 2022 · 2 comments

Comments

@dje06
Copy link

dje06 commented Apr 19, 2022

JBoss is forcing its own JBoss LogManager, which is returning null when using getProperty(String key), hence the call to LogManager.getLogManager().getProperty(key) from HttpEventCollectorLoggingHandler is never able to get the mandatory settings (url, token, index...).
I didn't find a way to change the LogManager returned by LogManager.getLogManager() as it seems to be hard-coded in JBoss itself.
Thefore, I suggest to let the user provide another configuration file in case the property is not available by the classical way using the LogManager configuration.
Also the default provided formatter is not used at all (same as #204).
I fixed both issues on my local and tested it. I will then raise a PR accordingly.

@dje06
Copy link
Author

dje06 commented Apr 20, 2022

PR: db98f63

@dje06
Copy link
Author

dje06 commented Apr 29, 2022

PR updated, I realized first implementation would be too complex to configure with handlers.
I created another handler for JBoss, where properties can be directly defined nested in the handler definition.
#248

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