Problem with log4j only in installed application
Paco Barrera <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAFS-qLkC64+uVSTPD8KiokCiUTV8juvtnQnnnVdQbX43jdbu3g@mail.gmail.com> |
Hi all,
I'm using log4j from the netbeans ide correctly. Now that I'm testing
logging from the installed application, anything works.
In the project I have a wrapper module WrapperLog4j (com.aws.log4j) where I
put in the log4j wrapped jar file, and the log4j.xml config file in
com.aws.log4j package.
In addition, I have an app.conf file to define jdkhome, jvm option,
userdir, etc....
The default_userdir="${HOME}/AwsSuite" has setted right, and has the
C:\Users\myuser\AppData\Roaming\AwsSuite value when I execute the installed
application.
In the log4j.xml, for the file appender has the value:
<param name="file" value="${netbeans.user}/var/log/awssuite.log" />
All this is working fine when I execute the application from the IDE. In
the ProjectFolder/build/testuserdir/var/log is the file awssuite.log
required for logging.
I try to changing ${netbeans.user} for ${user.home}, defining new jvm
variable in -J-DMyVariable=${HOME}/AwsSuite for use it in log4j.xml as
${MyVariable} in the appender file parameter, but nothing.
Any suggestions?
Any help is appreciated.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Libre
de virus. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>