One log4j.xml - many scripts
Posted
by
psed
on Stack Overflow
See other posts from Stack Overflow
or by psed
Published on 2012-10-29T14:36:30Z
Indexed on
2012/10/29
17:00 UTC
Read the original article
Hit count: 131
One of my utility jar files is used by different nix scripts, located in different categories. Problem: unable to initialize log4j framework (unable to find log4j.xml). Solution, that allows to configure logger correctly while launching jar classes by different scripts - usage of env vars and force configuring using DOMConfigurtor.configure(pathToConfXml)
method. is it possible to avoid path hardcoding and configure logger inside of a script?
Appreciate all your help. Thanks.
© Stack Overflow or respective owner