Documentation

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
jvx:common:util:log4j [2020/01/24 09:27]
admin
jvx:common:util:log4j [2020/01/24 09:33]
admin
Line 22: Line 22:
 log4j.appender.stdout.layout.ConversionPattern=%p\t%d{ISO8601}\t%r\t%c\t[%t]\t%m%n log4j.appender.stdout.layout.ConversionPattern=%p\t%d{ISO8601}\t%r\t%c\t[%t]\t%m%n
 </​file>​ </​file>​
 +
 +or
  
 <file xml log4j2.xml>​ <file xml log4j2.xml>​
Line 50: Line 52:
 as JVM start parameter (-DLoggerFactory.default=...). as JVM start parameter (-DLoggerFactory.default=...).
  
-This system property works in all JVx versions. JVx before 2.8.5 also had different configuration options:+This system property works in all JVx versions.\\ 
 +\\  
 +JVx **before 2.8.5** also had different configuration options:
  
-config.xml ​of your server zone:+== config.xml ​== 
 + 
 +(server zone)
  
 <file xml config.xml>​ <file xml config.xml>​
Line 58: Line 64:
  
 <​server>​ <​server>​
 +   ...
   ​   ​
   <​logfactory>​com.sibvisions.util.log.log4j.Log4jLoggerFactory</​logfactory>​   <​logfactory>​com.sibvisions.util.log.log4j.Log4jLoggerFactory</​logfactory>​
- 
-  ... 
 </​server>​ </​server>​
 </​file>​ </​file>​
  
-application.xml ​+== application.xml ​== 
  
-<​file ​script>+<​file ​xml application.xml>
 <​application>​ <​application>​
   ...   ...
 +  ​
   <​Launcher.logfactory>​com.sibvisions.util.log.log4j.Log4jLoggerFactory</​Launcher.logfactory>​   <​Launcher.logfactory>​com.sibvisions.util.log.log4j.Log4jLoggerFactory</​Launcher.logfactory>​
 </​application>​ </​application>​
 </​file>​ </​file>​
  
 +\\ 
 This options are not supported in newer JVx versions because you had to configure logging in different places. This options are not supported in newer JVx versions because you had to configure logging in different places.
  
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information