How to use log4j in Java step by step to configure JBoss 6 Logging in X
•
Java
Hello everyone, I'm a novice of JBoss, so I'm confused when setting up logging in JBoss 6.1
I Google it and know that I have to write JBoss deployment structure under the / meta inf / folder XML file, and - dorg. XML must be added at the beginning jboss. as. logging. Per deployment = false close-up of the server starting from this link (I don't know where to set it)
So anyone can give me some steps to use log4j or any logging (such as Java. Util. Logging) in JBoss 6 Configure logging in X to record statements in the console or file
Solution
You should find standalone. In the / bin folder of JBoss Bat file, and then you should edit this file to find the next line
rem Setup JBoss specific properties set JAVA_OPTS=-Dprogram.name=%PROGNAME% %JAVA_OPTS%
And replace with
Set "java_opts = - dorg. JBoss. As. Logging. Per deployment = false"
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码