one more way to do this:
-Dlog4j.configuration=file:"./log4j.properties"
More Related Contents:
- No appenders could be found for logger(log4j)?
- How to Create a Custom Appender in log4j2?
- How can I create 2 separate log files with one log4j config file?
- log4j: Log output of a specific class to a specific appender
- How do I read the manifest file for a webapp running in apache tomcat?
- Read a file line by line in reverse order
- log4j configuration via JVM argument(s)?
- include external jar when running java -jar
- Making a log4j console appender use different colors for different threads
- Log4J2 – assigning file appender filename at runtime
- configure log4j to log to custom file at runtime
- Conditional logging with log4j
- how to make log4j to write to the console as well
- Using system environment variables in log4j xml configuration
- Java Logging vs Log4J [closed]
- How do you flush a buffered log4j FileAppender?
- Producing executable jar in NetBeans
- Production settings file for log4j?
- Redirect System.out and System.err to slf4j
- How to specify Log4J 2.x config location?
- LOG4J: Modify logged message using custom appender
- Configuring RollingFileAppender in log4j
- log4j: package-specific logging
- Log runtime Exceptions in Java using log4j
- How to add Class-Path to the manifest file with maven
- How to configure log4j to only keep log files for the last seven days?
- Why chose XML over properties files for Log4J configuration?
- How to log multiple threads in different log files?
- log4j migration to log4j2
- Log4J: Strategies for creating Logger instances