Skip to main content

All Questions

Filter by
Sorted by
Tagged with
3 votes
0 answers
3k views

Enabling the Log4j 1.x bridge

How to set the system property “log4j1.compatibility” to a value of “true” and How to set the Log4j 1 system property “log4j.configuration” to the location of the log4j 1 configuration file. I have ...
jmonroe's user avatar
  • 61
0 votes
1 answer
2k views

log4j2.xml is not picking the changes in system properties during the runtime?

Creating an spring-boot app with log4j2 logger and server is wildfly10/jboss7.1. I added "system property": "loglevel" from Configuration: System Properties and able to access this from spring boot ...
SrikanthVarma A's user avatar
0 votes
1 answer
3k views

setting Log4j2 Config file path through system variable in IBM Websphere 8.5

I am using IBM Webspehere 8.5, where i need to pass the the log4j2 config file path externally (not hardcoded in deployed jar file as for dev, uat and prod different config file are present) Log4j2 ...
Rogger296's user avatar
  • 147
2 votes
2 answers
211 views

Log4j2 causing PreferIP6 to fail

If I run the following code public class NetworkTester { public static void main( String[] args ) { System.setProperty( "java.net.preferIPv6Addresses", "true" ); System.setProperty( "java.net....
rickmaster's user avatar
0 votes
2 answers
623 views

Configure Log4J2 with a System property to use a URL

Log4j2 accepts: -Dlog4j.configurationFile=path/to/log4j2.xml @see https://logging.apache.org/log4j/2.0/faq.html But we used to be able to use a real URL like http://host/configuration.xml. Is ...
benji's user avatar
  • 2,431
0 votes
1 answer
3k views

Log4j crashes with NullPointerException when log4j.configurationFile system property exists

I'm quite new to the Log4j2, so may be it isn't a bug just I don't know how to use it properly. I would like to configure the Log4j2 via configuration file specified by the log4j.configurationFile ...
mTUX's user avatar
  • 61
2 votes
1 answer
2k views

how to set system properties before log4j2 load it's configuration?

I am using log4j2-beta09.jar in a servlet 3.0+ enviroment. i hope use lookups like ${sys:logPath} in log4j2.xml,so i can set system properties.but the offical site says "The Log4j 2 Core JAR file is a ...
acerphenix's user avatar