You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Sivaks <si...@verizonwireless.com> on 2011/08/01 22:16:28 UTC
log4j is not printing in specified path
Hi,
I am trying to log info statements using log4j. I have included log4j.xml
(refer attachment).
static Logger logger = Logger.getLogger("Example.class");
logger.info(" Test page1");
After running the application, if i look at the specified path, I dont see
any files which i mentioned in log4j.xml.
Let me know if you need any clarification.
Any help appreciated
http://old.nabble.com/file/p32172797/log4j.xml log4j.xml
Regards,
Siva
--
View this message in context: http://old.nabble.com/log4j-is-not-printing-in-specified-path-tp32172797p32172797.html
Sent from the Log4j - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: log4j is not printing in specified path
Posted by Sivaks <si...@verizonwireless.com>.
Thanks Jacob!
You are correct, it was pointing to wrong configuration path.
Regards,
Siva
Jacob Kjome wrote:
>
>
> Run the app with -Dlog4j.debug=true
>
> This will make Log4j print out how it is configuring itself. Often times
> it
> turns out that it's picking up some other config file than the one you
> assume
> it should be picking up.
>
> Jake
>
> On Mon, 1 Aug 2011 13:16:28 -0700 (PDT)
> Sivaks <si...@verizonwireless.com> wrote:
>>
>> Hi,
>>
>> I am trying to log info statements using log4j. I have included log4j.xml
>> (refer attachment).
>>
>> static Logger logger = Logger.getLogger("Example.class");
>>
>> logger.info(" Test page1");
>>
>> After running the application, if i look at the specified path, I dont
>> see
>> any files which i mentioned in log4j.xml.
>>
>> Let me know if you need any clarification.
>>
>> Any help appreciated
>>
>> http://old.nabble.com/file/p32172797/log4j.xml log4j.xml
>>
>> Regards,
>> Siva
>> --
>> View this message in context:
>>http://old.nabble.com/log4j-is-not-printing-in-specified-path-tp32172797p32172797.html
>> Sent from the Log4j - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>>For additional commands, e-mail: log4j-user-help@logging.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
>
--
View this message in context: http://old.nabble.com/log4j-is-not-printing-in-specified-path-tp32172797p32178904.html
Sent from the Log4j - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: log4j is not printing in specified path
Posted by Jacob Kjome <ho...@visi.com>.
Run the app with -Dlog4j.debug=true
This will make Log4j print out how it is configuring itself. Often times it
turns out that it's picking up some other config file than the one you assume
it should be picking up.
Jake
On Mon, 1 Aug 2011 13:16:28 -0700 (PDT)
Sivaks <si...@verizonwireless.com> wrote:
>
> Hi,
>
> I am trying to log info statements using log4j. I have included log4j.xml
> (refer attachment).
>
> static Logger logger = Logger.getLogger("Example.class");
>
> logger.info(" Test page1");
>
> After running the application, if i look at the specified path, I dont see
> any files which i mentioned in log4j.xml.
>
> Let me know if you need any clarification.
>
> Any help appreciated
>
> http://old.nabble.com/file/p32172797/log4j.xml log4j.xml
>
> Regards,
> Siva
> --
> View this message in context:
>http://old.nabble.com/log4j-is-not-printing-in-specified-path-tp32172797p32172797.html
> Sent from the Log4j - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org