You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mark <el...@gmail.com> on 2005/07/06 12:51:42 UTC

can a context log to windows event log?

Is it possible for only one context to log to the Windows Event Log? 
What I want is for logs for the tomcat engine to be placed into a flat
file, and my context's logs to go into the Event Log.


thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: can a context log to windows event log?

Posted by Mark <el...@gmail.com>.
After reading the page:

http://logging.apache.org/log4j/docs/manual.html

I am wondering what up-front initialization I must do in order to get
things working with Tomcat 5.5.x?  The documentation seems to be a bit
dated.

Thank you.


On 7/6/05, Mark <el...@gmail.com> wrote:
> hrmmm, I missed that when I read the FAQ.
> 
> Thank you.
> 
> On 7/6/05, Jon Wingfield <jo...@mkodo.com> wrote:
> > No. You can configure log4j on a per context basis.
> > http://jakarta.apache.org/tomcat/faq/logging.html#userWebapps
> >
> > For example:
> > http://marc.theaimsgroup.com/?l=tomcat-user&m=108330970225012&w=2
> >
> >
> > Mark wrote:
> >
> > > Yes, I know.  But from what I have read, the configuration is more
> > > global.  I want to only place audits from one context in the Event
> > > Log, not all of Tomcat's audits.
> > >
> > >
> > > On 7/6/05, Jon Wingfield <jo...@mkodo.com> wrote:
> > >
> > >>log4j has an appender which can write to the Event Log
> > >>
> > >>http://logging.apache.org/log4j/docs/api/index.html
> > >>http://jakarta.apache.org/tomcat/faq/logging.html
> > >>
> > >>HTH,
> > >>
> > >>Jon
> > >>
> > >>Mark wrote:
> > >>
> > >>
> > >>>Is it possible for only one context to log to the Windows Event Log?
> > >>>What I want is for logs for the tomcat engine to be placed into a flat
> > >>>file, and my context's logs to go into the Event Log.
> > >>>
> > >>>
> > >>>thank you.
> > >>>
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: can a context log to windows event log?

Posted by Mark <el...@gmail.com>.
hrmmm, I missed that when I read the FAQ.

Thank you.

On 7/6/05, Jon Wingfield <jo...@mkodo.com> wrote:
> No. You can configure log4j on a per context basis.
> http://jakarta.apache.org/tomcat/faq/logging.html#userWebapps
> 
> For example:
> http://marc.theaimsgroup.com/?l=tomcat-user&m=108330970225012&w=2
> 
> 
> Mark wrote:
> 
> > Yes, I know.  But from what I have read, the configuration is more
> > global.  I want to only place audits from one context in the Event
> > Log, not all of Tomcat's audits.
> >
> >
> > On 7/6/05, Jon Wingfield <jo...@mkodo.com> wrote:
> >
> >>log4j has an appender which can write to the Event Log
> >>
> >>http://logging.apache.org/log4j/docs/api/index.html
> >>http://jakarta.apache.org/tomcat/faq/logging.html
> >>
> >>HTH,
> >>
> >>Jon
> >>
> >>Mark wrote:
> >>
> >>
> >>>Is it possible for only one context to log to the Windows Event Log?
> >>>What I want is for logs for the tomcat engine to be placed into a flat
> >>>file, and my context's logs to go into the Event Log.
> >>>
> >>>
> >>>thank you.
> >>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: can a context log to windows event log?

Posted by Jon Wingfield <jo...@mkodo.com>.
No. You can configure log4j on a per context basis.
http://jakarta.apache.org/tomcat/faq/logging.html#userWebapps

For example:
http://marc.theaimsgroup.com/?l=tomcat-user&m=108330970225012&w=2


Mark wrote:

> Yes, I know.  But from what I have read, the configuration is more
> global.  I want to only place audits from one context in the Event
> Log, not all of Tomcat's audits.
> 
> 
> On 7/6/05, Jon Wingfield <jo...@mkodo.com> wrote:
> 
>>log4j has an appender which can write to the Event Log
>>
>>http://logging.apache.org/log4j/docs/api/index.html
>>http://jakarta.apache.org/tomcat/faq/logging.html
>>
>>HTH,
>>
>>Jon
>>
>>Mark wrote:
>>
>>
>>>Is it possible for only one context to log to the Windows Event Log?
>>>What I want is for logs for the tomcat engine to be placed into a flat
>>>file, and my context's logs to go into the Event Log.
>>>
>>>
>>>thank you.
>>>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: can a context log to windows event log?

Posted by Mark <el...@gmail.com>.
Yes, I know.  But from what I have read, the configuration is more
global.  I want to only place audits from one context in the Event
Log, not all of Tomcat's audits.


On 7/6/05, Jon Wingfield <jo...@mkodo.com> wrote:
> log4j has an appender which can write to the Event Log
> 
> http://logging.apache.org/log4j/docs/api/index.html
> http://jakarta.apache.org/tomcat/faq/logging.html
> 
> HTH,
> 
> Jon
> 
> Mark wrote:
> 
> > Is it possible for only one context to log to the Windows Event Log?
> > What I want is for logs for the tomcat engine to be placed into a flat
> > file, and my context's logs to go into the Event Log.
> >
> >
> > thank you.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: can a context log to windows event log?

Posted by Jon Wingfield <jo...@mkodo.com>.
log4j has an appender which can write to the Event Log

http://logging.apache.org/log4j/docs/api/index.html
http://jakarta.apache.org/tomcat/faq/logging.html

HTH,

Jon

Mark wrote:

> Is it possible for only one context to log to the Windows Event Log? 
> What I want is for logs for the tomcat engine to be placed into a flat
> file, and my context's logs to go into the Event Log.
> 
> 
> thank you.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org