I need to read a custom log4j.properties from src/resources and this is not working
try{ val inStream :InputStream= className.this.getClass.getClassLoader
You can just give another name to your file (and using it in the code as well), so there is no conflict with conf/log4j.properties.
conf/log4j.properties
You can get all resources with the given name on the classpath using ClassLoader.getResources("log4j.properties") and choose which one you want.