see the the Filelogger class under server\lib\catalina.jar
so you can do one thing write your own Filelogger class which is exactly same 
as Filelogger just copy it
and just remove the date from pathname definition inside the open method.
and just compile and use it as your own file logger.

cheers
Manish

 private void open()
    {
        File dir = new File(directory);
        if(!dir.isAbsolute())
            dir = new File(System.getProperty("catalina.base"), directory);
        dir.mkdirs();
        try
        {
            String pathname = dir.getAbsolutePath() + File.separator + prefix + 
date + suffix;
            writer = new PrintWriter(new FileWriter(pathname, true), true);
        }
        catch(IOException e)
        {
            writer = null;
        }
    }











extend fileLogger class which is in server\lib\catalina.jar

-----Original Message-----
From: Faine, Mark [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 23, 2004 10:49 PM
To: 'Tomcat Users List'
Subject: RE: Logger without timestamp not working


I hate to do it, considering all the work involved and the fact that I'll
have to ensure that it gets included in every installation of Tomcat from
here on out (until we get to 5.5) but I have little choice.  I can't believe
the option is not already a part of the FileLogger class.


-Mark


-----Original Message-----
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 23, 2004 11:16 AM
To: Tomcat Users List
Subject: Re: Logger without timestamp not working


Yup. But is it really worth it? Logger is gone in 5.5 in place of
commons-logging.

-Tim

Faine, Mark wrote:

> So how would you suggest one get a log file without a timestamp
> appended to it?  Extend FileLogger?
>
> -Mark
>
> -----Original Message-----
> From: Tim Funk [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 23, 2004 10:48 AM
> To: Tomcat Users List
> Subject: Re: Logger without timestamp not working
>
>
> The timestamp attribute is a flag as to show or hide the timestamp
> when a
> message is logged in the file. It has nothing to do with the file name.
>
> -Tim
>
> Goel, Manish Kumar wrote:
> 
>
>>Tim Funk,
>>
>>I tried it in  5.0.19 version it didn't work for me also
>>but document says it must work and the default value of timestamp is
>>false
>
> and my other problem
>
>>with logger I have already posted it &  didn't hear from any one abt.
>>it
>>
>>
>>problem for creating the separate log file by <Logger  .....  />for my
>>application context in tomcat-5.0.19.  that is working fine in tomcat
>>5.0.27!!!!!
>>
>> please help me what the settings are to be needed to make it out on
>> tomcat 5.0.19 . is this bug ???? or AM I missing some thing
>>
>> sample of my context file which is under
>>
>> ..conf\Catalina\localhost\
>>
>>
>> <Context displayName="SMART" debug="0" docBase="Smart" path="/Smart">
>>
>>      <Logger className="org.apache.catalina.logger.FileLogger"
>>                  directory="webapps/smartlogs"  prefix="Smart_log."
>>suffix=".txt"
>>            timestamp="true"/>
>>      .....................
>>      ..................
>>
>>      <Context/>
>>
>>
>
>
> ---------------------------------------------------------------------
> 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]
>
>

---------------------------------------------------------------------
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]


***********************************************************************************
Information contained in this email message is intended only for use of the
individual or entity named above. If the reader of this message is not the
intended recipient, or the employee or agent responsible to deliver it to
the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please immediately notify the
[EMAIL PROTECTED] and destroy the original message.
**************************************************************************************

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

Reply via email to