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
builder: use structured logging for maven output #1783
Comments
//cc @astefanutti |
It complements #580 for integration logging. |
I am looking at this. |
So, I got that working. The original link does not work, but the page is archived on wayback machine. There are a few caveats, though:
|
Great! I think these are acceptable, compared to having the operator log fully JSONified. Just to be sure, what do you mean exactly by 4? The first value is to have full JSON for the operator log. Then, the second requirement would be to enable correlation for the Build logs, that are interleaved into the operator reconcile loop. To meed that requirement, it'd be useful to add a build correlation key. Or to find another mechanism, so that SOPs or users can quickly pick into the build and reconciliation for a particular resource. |
Thanks!
Basically, what I meant is that the JSON for the build log and the JSON for the operator logs are different.
The maven logs are slightly different and we'll have to adjust that to make them look the same (either by modifying the logback configuration or consuming them).
I see. It makes sense. If I understand it correctly, this is just the first part: just printing the maven logs in JSON format. To make it truly useful, we'll have to consume and process that maven JSON format so we can normalize it and correlate it. So, IMHO, the next step would be to work on that. Do you think it makes sense to split that into 2 tasks (and, consequently, in 2 contributions)? |
Cane we eventually make a pre-build container image with all the required bits already there ? |
Whatever works best for you. Having the Maven logs JSONified is already an improvement, so it can be merged and have it followed by other contributions. |
My understanding is that the image here is the operator one. So it'll be updated to have all the bits. |
Deal, thanks. I'll clean it up and send the current implement today for review.
That's correct. |
This solves GH issue apache#1783
This solves GH issue apache#1783
This solves GH issue apache#1783
This solves GH issue apache#1783
This solves GH issue apache#1783
Fixed with #2262. |
http://development.wombatsecurity.com/development/2018/04/06/logging-maven-to-json/
The text was updated successfully, but these errors were encountered: