Trace:
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
jvx:common:util:log4j [2020/01/24 09:33] admin |
jvx:common:util:log4j [2020/06/15 14:40] (current) cduncan Edited for English grammar (capitalization, punctuation, correct verb conjugation) |
||
---|---|---|---|
Line 1: | Line 1: | ||
~~NOTRANS~~ | ~~NOTRANS~~ | ||
- | ~~Title: Log4j instead of Logging API~~ | + | ~~Title: Log4j Instead of Logging API~~ |
If you want to use log4j or log4j2 instead of standard Java logging API for your application, simply add the logger factory configuration to your classpath. First, create a file with the name | If you want to use log4j or log4j2 instead of standard Java logging API for your application, simply add the logger factory configuration to your classpath. First, create a file with the name | ||
Line 45: | Line 45: | ||
</file> | </file> | ||
- | Another option, to configure the logger factory is to set the system property: | + | Another way to configure the logger factory is to set the system property: |
<code> | <code> | ||
Line 81: | Line 81: | ||
\\ | \\ | ||
- | This options are not supported in newer JVx versions because you had to configure logging in different places. | + | These options are not supported in newer JVx versions because you had to configure logging in different places. |
\\ | \\ |