tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shahar Cohen" <Shahar.Co...@888holdings.com>
Subject RE: Tomcat 5.5 logging!
Date Tue, 23 Sep 2008 15:07:42 GMT
Hi,
Actually when I press the TAB key I see that its really inserting a TAB key and not spaces
even after I restart tomcat the TAB key is still there and not spaces but if I open the log
file in vi I see that it enterperate it as spaces and my log analysis machine also see that
as spaces.
I have tries to use the \t '\t' and all of its variation but without any success.
Any other recommendation will be very appreciated.
thanks

-----Original Message-----
From: André Warnier [mailto:aw@ice-sa.com] 
Sent: Tuesday, September 23, 2008 3:04 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.5 logging!

Shahar Cohen wrote:
> Hi,
> 
> I am trying to set my tomcat log format so it will be TAB delimited but
> instead its 
> 
> Printing the logs as spaces delimited and not TAB.
> 
> Do I need to configure any other parameters between the common
> parameters so it will separate the parameters   with tab.
> 
>  
> 
> My tomcat log format is:
> 
> pattern='%B    %a      %m      %U      %q     %s      %t      %D
> "%{Referer}i"    "%{User-Agent}i"        %S'
> 
>  
Really a wild guess, because I don't know how Tomcat handles this 
"pattern" attribute :
Could it be that you are confused by the text editor that you use to 
write this configuration file ?  I mean when you insert a tab with the 
TAB key, the editor just inserts an appropriate number of spaces ?
And then maybe Tomcat, when it interprets the pattern, strips duplicate 
consecutive spaces ?

As another wild guess, have you tried to insert '\t' in your pattern, 
instead of pressing the TAB key.  (\t is the traditional way of 
representing a TAB in various circumstances).
Like :
 > pattern='%B\t%a\t%m\t%U\t%q\t%s\t%t\t%D    ...etc..

I make no guarantees about crashing your server.


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


---------------------------------------------------------------------
To start a new topic, e-mail: users@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