Re: Problem with log4j only in installed application
Paco Barrera <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAFS-qLmWik54VzE5WDrRCpJMJKWHvar_Wgv+KKo8P4n1kKHmAA@mail.gmail.com> |
I'm stucked with this issue.....I've tried all combinations for the
location of the log file and the log4j.xml configuration.
The weird thing is that all works perfectly from the netbeans ide, and it
will may work right in the installed application, but anything works.
I cannot have log information in the application at all and in the
${netbeans.user}/var/log/messages.log any reference to log4j is present.
Anybody can help me, please?
2016-05-03 10:50 GMT+02:00 Paco Barrera <[email protected]>:
> 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>
> <#m_6835975887375612018_DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>