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 "Ranjan, Rajiv" <ra...@eds.com> on 2005/05/24 10:12:54 UTC
Log file does not gets created with log4j
Logs file does not gets created on the given location in log4j
properties file.
log4j.appender.Servlet.File=/log/CCAR_TRN1/sybnservlet/servlet.log
I have log4j.jar file in the weblogic server classpath, also passed
log4j.properties file as JAVA_ARGS.
Still not working.
Any help will be appreciated.
Thanks
Rajiv Ranjan
> EDS-Electronics Data Systems (India)
> _______________________________
> DLF Plaza Tower, DLF City Phase - I,
> Gurgaon - 122002, Haryana, India
> *: +91-124-519-7716
> Mobile: +91-9811860047
pager: +919811860047@delhi.hutch.co.in
> email : rajiv.ranjan@eds.com
> Jabber IM: rajiv.ranjan@eim.eds.com
> web: www.eds.com
>
>
Re: Log file does not gets created with log4j
Posted by Jacob Kjome <ho...@visi.com>.
At 09:08 AM 5/24/2005 -0500, you wrote:
>You could try writing your log to the root for a start and work you
>way to the correct location.
>
>og4j.appender.Servlet.File=/servlet.log
>
Why not start by simply making sure that logging is working at all using a
ConsoleAppender. Is there any Log4j output? If not, then you might check
whether the log4j.properties file passed "as JAVA_ARGS" is actually getting
discovered by Log4j. Start simple. Once that works, you can add
complexity as needed.
Jake
>On 5/24/05, Ranjan, Rajiv <ra...@eds.com> wrote:
>> Logs file does not gets created on the given location in log4j
>> properties file.
>>
>> log4j.appender.Servlet.File=/log/CCAR_TRN1/sybnservlet/servlet.log
>>
>> I have log4j.jar file in the weblogic server classpath, also passed
>> log4j.properties file as JAVA_ARGS.
>>
>> Still not working.
>>
>> Any help will be appreciated.
>>
>> Thanks
>>
>> Rajiv Ranjan
>> > EDS-Electronics Data Systems (India)
>> > _______________________________
>> > DLF Plaza Tower, DLF City Phase - I,
>> > Gurgaon - 122002, Haryana, India
>> > *: +91-124-519-7716
>> > Mobile: +91-9811860047
>> pager: +919811860047@delhi.hutch.co.in
>> > email : rajiv.ranjan@eds.com
>> > Jabber IM: rajiv.ranjan@eim.eds.com
>> > web: www.eds.com
>> >
>> >
>>
>>
>
>
>--
>James Stauffer
>Are you good? Take the test at http://www.livingwaters.com/good/
>
>---------------------------------------------------------------------
>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
Re: Log file does not gets created with log4j
Posted by James Stauffer <st...@gmail.com>.
You could try writing your log to the root for a start and work you
way to the correct location.
og4j.appender.Servlet.File=/servlet.log
On 5/24/05, Ranjan, Rajiv <ra...@eds.com> wrote:
> Logs file does not gets created on the given location in log4j
> properties file.
>
> log4j.appender.Servlet.File=/log/CCAR_TRN1/sybnservlet/servlet.log
>
> I have log4j.jar file in the weblogic server classpath, also passed
> log4j.properties file as JAVA_ARGS.
>
> Still not working.
>
> Any help will be appreciated.
>
> Thanks
>
> Rajiv Ranjan
> > EDS-Electronics Data Systems (India)
> > _______________________________
> > DLF Plaza Tower, DLF City Phase - I,
> > Gurgaon - 122002, Haryana, India
> > *: +91-124-519-7716
> > Mobile: +91-9811860047
> pager: +919811860047@delhi.hutch.co.in
> > email : rajiv.ranjan@eds.com
> > Jabber IM: rajiv.ranjan@eim.eds.com
> > web: www.eds.com
> >
> >
>
>
--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
RE: Log file does not gets created with log4j
Posted by Aron Bock <ar...@hotmail.com>.
Rajiv, I don't know the construct "log4j.appender.Servlet...", but I believe
filepath indicated should either be absolute (i.e. starting from root), or
if relative will be taken to mean as relative from the start-dir of the web
server/servlet container.
If you want logs placed relative to your app ... I've seen at least one post
of somebody who did that in a webapp by having an initialisation Servlet do
it dynamically.
Regards,
--A
>From: "Ranjan, Rajiv" <ra...@eds.com>
>Reply-To: "Log4J Users List" <lo...@logging.apache.org>
>To: <lo...@logging.apache.org>
>Subject: Log file does not gets created with log4j
>Date: Tue, 24 May 2005 03:12:54 -0500
>
>Logs file does not gets created on the given location in log4j
>properties file.
>
>log4j.appender.Servlet.File=/log/CCAR_TRN1/sybnservlet/servlet.log
>
>I have log4j.jar file in the weblogic server classpath, also passed
>log4j.properties file as JAVA_ARGS.
>
>Still not working.
>
>Any help will be appreciated.
>
>Thanks
>
>Rajiv Ranjan
> > EDS-Electronics Data Systems (India)
> > _______________________________
> > DLF Plaza Tower, DLF City Phase - I,
> > Gurgaon - 122002, Haryana, India
> > *: +91-124-519-7716
> > Mobile: +91-9811860047
>pager: +919811860047@delhi.hutch.co.in
> > email : rajiv.ranjan@eds.com
> > Jabber IM: rajiv.ranjan@eim.eds.com
> > web: www.eds.com
> >
> >
_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org