You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Davidian <kr...@syrres.com> on 2006/03/21 15:10:51 UTC

Removing dates from localhost log file

Is it possible to remove the line that includes the date/time that appears in
the localhost-<date> log file?

This information is written every other line, and in our software, it just
gets in the way.  Here is an example of the line I am referring to:

Mar 21, 2006 3:08:08 AM org.apache.catalina.core.ApplicationContext log

I've looked at the logging.properties files, and associated documentation,
but I don't see anything about this.

Thank you in advance.
--
View this message in context: http://www.nabble.com/Removing-dates-from-localhost-log-file-t1317556.html#a3513080
Sent from the Tomcat - Dev forum at Nabble.com.


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


Re: Removing dates from localhost log file

Posted by Yoav Shapira <yo...@apache.org>.
Hi,
This belongs on the tomcat user mailing list, users@tomcat.apache.org,
not this one.  Please continue the discussion there, not here.

To remove the date/times you need to specify a formatting pattern in
logging.properties that does not include date/time.  The exact syntax
of the pattern depends on which logging implementation you're using,
e.g. log4j or java.util.logging.  If you're using log4j, see the
JavaDocs for org.apache.log4j.PatternLayout: any pattern without %d
will work.  If you're using java.util.logging, I'm not sure where
exactly the pattern options are.

Yoav

On 3/21/06, Davidian <kr...@syrres.com> wrote:
>
> Is it possible to remove the line that includes the date/time that appears in
> the localhost-<date> log file?
>
> This information is written every other line, and in our software, it just
> gets in the way.  Here is an example of the line I am referring to:
>
> Mar 21, 2006 3:08:08 AM org.apache.catalina.core.ApplicationContext log
>
> I've looked at the logging.properties files, and associated documentation,
> but I don't see anything about this.
>
> Thank you in advance.
> --
> View this message in context: http://www.nabble.com/Removing-dates-from-localhost-log-file-t1317556.html#a3513080
> Sent from the Tomcat - Dev forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>


--
Yoav Shapira
Nimalex LLC
1 Mifflin Place, Suite 310
Cambridge, MA, USA
yoavs@computer.org / www.yoavshapira.com

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