Re: Context level logging

2008-11-10 Thread Jonathan Mast
Well I did everything I said I would above and Catalina.out kept on
receiving the System errors and the specified file didn't receive anything.
So I guess it was a failure.

I do believe you can specify in the web app deployment descriptor more
detailed logging, but I haven't had time to test it out.

Sorry I couldn't help ya out more.

Good luck

On Mon, Nov 10, 2008 at 10:30 AM, blacksheep <[EMAIL PROTECTED]> wrote:

>
> I wonder you came up with a solution ?
>
>
> Jonathan Mast-2 wrote:
> >
> > OK, i have a webapp which has it's own context element.  I want all the
> > System.out and System.err stuff from this webapp to go to it's own
> special
> > log file as opposed to catalina.out.  My reading of the Tomcat docs
> > (version
> > 5.5) seems to indicate that I can do this by following these steps:
> >
> > 1. set the "swallowOutput" attribute to true in the Context entry in
> > server.xml
> > 2. add the following to the "logging.properties" file:
> >
> > 6FOOAPP.org.apache.juli.FileHandler
> >
> > 6FOOAPP.org.apache.juli.FileHandler.level = FINE
> > 6FOOAPP.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
> > 6FOOAPP.org.apache.juli.FileHandler.prefix = FOOAPP.
> >
> >
> >
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/FOOAPP].level
> > = FINE
> >
> >
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/FOOAPP].handlers
> > = 6FOOAPP.org.apache.juli.FileHandler
> >
> > 3. restart Tomcat
> >
> > Is this correct?
> >
> > The last 2 lines of the edit I really don't understand.
> >
> > thanks
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Context-level-logging-tp17630343p20422122.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Context level logging

2008-11-10 Thread blacksheep

I wonder you came up with a solution ?
 

Jonathan Mast-2 wrote:
> 
> OK, i have a webapp which has it's own context element.  I want all the
> System.out and System.err stuff from this webapp to go to it's own special
> log file as opposed to catalina.out.  My reading of the Tomcat docs
> (version
> 5.5) seems to indicate that I can do this by following these steps:
> 
> 1. set the "swallowOutput" attribute to true in the Context entry in
> server.xml
> 2. add the following to the "logging.properties" file:
> 
> 6FOOAPP.org.apache.juli.FileHandler
> 
> 6FOOAPP.org.apache.juli.FileHandler.level = FINE
> 6FOOAPP.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
> 6FOOAPP.org.apache.juli.FileHandler.prefix = FOOAPP.
> 
> 
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/FOOAPP].level
> = FINE
> 
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/FOOAPP].handlers
> = 6FOOAPP.org.apache.juli.FileHandler
> 
> 3. restart Tomcat
> 
> Is this correct?
> 
> The last 2 lines of the edit I really don't understand.
> 
> thanks
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Context-level-logging-tp17630343p20422122.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Context level logging

2008-06-03 Thread Jonathan Mast
OK, i have a webapp which has it's own context element.  I want all the
System.out and System.err stuff from this webapp to go to it's own special
log file as opposed to catalina.out.  My reading of the Tomcat docs (version
5.5) seems to indicate that I can do this by following these steps:

1. set the "swallowOutput" attribute to true in the Context entry in
server.xml
2. add the following to the "logging.properties" file:

6FOOAPP.org.apache.juli.FileHandler

6FOOAPP.org.apache.juli.FileHandler.level = FINE
6FOOAPP.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
6FOOAPP.org.apache.juli.FileHandler.prefix = FOOAPP.


org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/FOOAPP].level
= FINE

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/FOOAPP].handlers
= 6FOOAPP.org.apache.juli.FileHandler

3. restart Tomcat

Is this correct?

The last 2 lines of the edit I really don't understand.

thanks


RE: Context Level Logging

2006-03-16 Thread James Reynolds

Ah, I was expecting the docs to mention "Context level" specifically and
I completely missed that little gem. I need to employ the rtfm*2 method
:)

Thanks

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 16, 2006 11:56 AM
To: Tomcat Users List
Subject: RE: Context Level Logging

> From: James Reynolds [mailto:[EMAIL PROTECTED]
> Subject: Context Level Logging
> 
> I want to be a good neighbor and set up context level logging, so log 
> files from my app will go to conf/logs/myContextName.
> Is there a way to configure tomcat to do this?

RTFM:
http://tomcat.apache.org/tomcat-5.5-doc/logging.html

The above includes the sample config to do so for
webapps/server-examples.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Context Level Logging

2006-03-16 Thread Caldarale, Charles R
> From: James Reynolds [mailto:[EMAIL PROTECTED] 
> Subject: Context Level Logging
> 
> I want to be a good neighbor and set up context level logging,
> so log files from my app will go to conf/logs/myContextName.
> Is there a way to configure tomcat to do this?

RTFM:
http://tomcat.apache.org/tomcat-5.5-doc/logging.html

The above includes the sample config to do so for
webapps/server-examples.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Context Level Logging

2006-03-16 Thread James Reynolds

I'm about to move a Shale web app into a Tomcat 5.5.15 container where
it will sit with some other web apps.  I want to be a good neighbor and
set up context level logging, so log files from my app will go to
conf/logs/myContextName.  Is there a way to configure tomcat to do this?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]