tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pid *" <...@pidster.com>
Subject Re: AW: Logger / Context
Date Tue, 01 Jun 2010 09:40:50 GMT
On 1 Jun 2010, at 09:08, Stefan Rainer <s.rainer@teamaxess.com> wrote:

> Hello,
>
> thank you for your reply but I do not manage to get my desired result.
>
> We have several axis*** servlets installed in /webapps of Tomcat 6.0*.
> (Let's call it axis1 to axis100 for this explanation.)
>
> In Tomcat 5.0* we had different contexts with loggers defined in
> server.xml,
> thus the stdout was redirected to the files configured in this
> loggers.
> This configuration is not proposed and also not supported in Tomcat 6.

Yes. So why are you trying to force it?

> ==> We have tried a lot of different things but I never managed to
> redirect my
> stdout from "localhost.Date.log" to a "localhost_axis1.Date.log" file.
>
> Does anyone has a hint for me, where to configure that or how?

As I said, you must configure your own in-app logging.

Log4j, with or without commons-logging, Java logging (or Tomcat's
version).

The Axis site will likely have info about configuring logging in newer
versions of Tomcat.


p

> Thanks in advance
>
> STefan
>
>
>
> -----Urspr√ľngliche Nachricht-----
> Von: Pid * [mailto:pid@pidster.com]
> Gesendet: Montag, 31. Mai 2010 16:13
> An: Tomcat Users List
> Betreff: Re: Logger / Context
>
>
> On 31 May 2010, at 12:29, Stefan Rainer <s.rainer@teamaxess.com>
> wrote:
>
>> Hello,
>>
>> we've been using context + logger for redirecting "stdout-logs"
>> from different servlets to different folders in tomcat 5.0.*:
>>
>> <Context docBase="axis" path="/axis" reloadable="true"
>> swallowOutput="true">
>> <Logger className="org.apache.catalina.logger.FileLogger"
>> directory="logs/axis/" prefix="StdOut_axis_" suffix=".log"
>> timestamp="true"/>
>> </Context>
>>
>> After upgrading to tomcat 6.*, this log redirects does not work
>> anymore.
>> Has anyone a hint or a link to some information how this could be
>> done in
>> Tomcat 6?
>
> Configuration details have changed since 5.0, please read the docs for
> Context, Host (and DataSource if applicable).
>
> The Logger element is no longer used.
>
> The AccessLogValve is now used for request logging. You must configure
> your own logging for in-app logs, e.g. Log4j.
>
>
> p
>
>> thanks, stefan
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

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


Mime
View raw message