log4j appender relative to the path of my maven project
I'm trying to define an log4j appender to be saved in my current maven project (for dev only). I do not want the appender to end up in my deployed w开发者_JS百科ebapp, but in my actual maven project, next to the sources, regardless of where my webapp is deployed (locally of course).
I have tried various maven (and non-maven) variables with no luck.
Is there a variable I'm missing to do this simply? Any help is appreciated. Thanks.
Have you tried putting ${basedir}
or ${basedir}/target
as the logfile location in log4j.properties? It should get filtered during the build.
精彩评论