s2i-java | Java S2I Builder image | Microservice library
kandi X-RAY | s2i-java Summary
kandi X-RAY | s2i-java Summary
OpenShift's Java S2I Builder image. Suitable for java (fatjar) types of applications, microservices, springboot, vert.x, wildfly swarm, dropwizard,...
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of s2i-java
s2i-java Key Features
s2i-java Examples and Code Snippets
Community Discussions
Trending Discussions on s2i-java
QUESTION
I have a challenge with loggings in Openshift with Quarkus as the JSON format I'm trying to get does work when testing locale, but when running it on Openshift I keep getting normal log lines. The problem with this is that log messages are all single lines in the Elasticsearch database and added MDC values are not included.
Main questions:
- Is this default behavior on Openshift OKD, or might it be a problem with the base image?
- Is there a way to adjust this behavior?
- How else might I make sure that logs are processed in JSON style for my specific project in Openshift OKD?
locale, when run with: mvnw.cmd compile quarkus:dev
the log is in json format: e.g:
ANSWER
Answered 2020-Oct-26 at 12:28On Openshift the loggerManager was of type java.util.logManager
while on local system the loggerManager was of type org.jboss.logmanager.LogManager
By starting on Openshift the java process with the property: -Djava.util.logging.manager=org.jboss.logmanager.LogManager
The log was written as JSON.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install s2i-java
APP_SUFFIX: Jar file suffix to use to locate the generated artifact to use (e.g. xxxxx${APP_SUFFIX}.jar)
BUILDER_ARGS: Allows you to specify options to pass to maven or gradle
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page