I am trying to build a one jar file with sbt on a scala/java project. All the project is correctly built and packaged except the log4J configuration file.
I did not find how to include it in the classpath of the final jar.
I tried to add it to unmanagedBase
in the build.sbt
file without success.
How can I do that ?
The file is named log4j. properties and is located in the $DGRAPH_HOME/dgraph-hdfs-agent/lib directory. The file defines the ROLLINGFILE appenders for the root logger and also sets the log level for the file. The level of the root logger is defined as INFO and attaches the ROLLINGFILE appender to it.
Log4j and Tomcat Libraries are placed in common library directory. The configuration file for Tomcat is in common/classes directory, the configuration file for a application is placed in the WEB-INF/classes folder of the application.
It should work if you place the file in src/main/resources
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With