Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #39875
| From | Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: log4j2 test? |
| Date | 2022-12-19 17:42 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <tnq49l$crgk$1@dont-email.me> (permalink) |
| References | <948bfc5a-7db1-468f-a8de-6f0786c5514fn@googlegroups.com> |
On 14/12/2022 15:41, e.d.pro...@gmail.com wrote:
> log4j2.xml defines RollingFile with fileName="${sys:catalina.base}/logs/${application.name}.application.log"
>
> This works when I run the app. This gets an error when I run mvn install in the test phase. Test works if I remove the catalina.base variable. How do I get this to resolve, or what is the normal log path for maven test phase platform independent, as in to run from my eclipse workspace path as well as the jenkins build?
I would recommend either logging to a fixed place, such as /var/log on a
*NIX, or going relative, i.e. against the working directory.
Either should fix your problem, as well as make things simpler.
--
DF.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
log4j2 test? "e.d.pro...@gmail.com" <e.d.programmer@gmail.com> - 2022-12-14 06:41 -0800
Re: log4j2 test? Andreas Leitgeb <avl@logic.at> - 2022-12-16 19:02 +0000
Re: log4j2 test? "e.d.pro...@gmail.com" <e.d.programmer@gmail.com> - 2022-12-16 12:20 -0800
Re: log4j2 test? Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2022-12-19 17:42 +0100
Re: log4j2 test? "e.d.pro...@gmail.com" <e.d.programmer@gmail.com> - 2022-12-19 11:37 -0800
Re: log4j2 test? Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2022-12-20 02:17 +0100
csiph-web