In a legacy project I found that in log4j.properties the appender file is defined as:
log4j.appender.file.File=log/logging.log
Where I can find that output file of log4j in linux? At system level the application logs are not appearing, only the start of its execution
2022-01-13 11:03:19 INFO DAGScheduler:54 - Submitting 200 missing tasks from ShuffleMapStage 2 (MapPartitionsRDD[12] at count at appname.java:133) (first 15 tasks are for parti..```
CodePudding user response:
Check it:
log4j.appender.stdout.File=${myhome}/log/myapp.log
Of course, without this statement, check the application's directory.
CodePudding user response:
There is no log4j specific base path for log4j paths.
If you use a relative file path in the log4j configs, it will be resolved in the same way that all relative file paths are resolved. It will resolved relative to the working directory for the JVM. Loosely speaking, that is "the current directory where you launched the application".
