catalina.out contents are actually system.out-s so you shouldn't
expect any timestamps there, unless you have a logkit like log4j and
configured your logger to go for standard out (which is bad :-))

However, we had same problem and have a workaround for this:
We are starting a Thread in our configuration servlet which just does following:
        private static long startupTime;
        static {
                startupTime=System.currentTimeMillis();
        }



        private  void log() {
                System.out.println((System.currentTimeMillis()-startupTime)+" " 
+new
Date().toString()+" -MARK-");
        }

        public run(){
            while(true){
                   try{
                        sleep(5000);
                   }catch(InterruptedException ignored){}
                   log();
            }
        }

if you set the thread to daemon you will have no problems with
container app. reloading.

regards
leon


On 9/23/05, Partheeban Boopathy <[EMAIL PROTECTED]> wrote:
> Common guys i need help on this ,since its effecting our support to
> production.
> I dont have any clue what to do on this
> I am using Tomcat5.0.27
>
> The Logging Pattern in Catalina.out is missing with Timestamp .
> I am getting blank instead of TimeStamp.
> I was using same Tomcat version in my local machine and i can able to see
> the timestamp in Catalina.out.The only difference is we changed
> server.xmlport of 8080 to
> 8015.Will that cause any problem.Or is that i am missing any thing???
>
> Here is my catalina.out
> - Initializing Coyote HTTP/1.1 on http-8014
> - Initialization processed in 3938 ms
> - Starting service Catalina
> - Starting Servlet Engine: Apache Tomcat/5.0.27
> - XML validation disabled
> - Create Host deployer for direct deployment ( non-jmx )
> - Processing Context configuration file URL
> file:/opt/tomcat-strata/conf/Catalin
> a/localhost/admin.xml
> - Processing Context configuration file URL
> file:/opt/tomcat-strata/conf/Catalin
> a/localhost/balancer.xml
> - Processing Context configuration file URL
> file:/opt/tomcat-strata/conf/Catalin
> a/localhost/manager.xml
> - Installing web application at context path from URL
> file:/opt/tomcat-strata/w
> ebapps/ROOT
> - Installing web application at context path /strata from URL
> file:/opt/tomcat-s
> trata/webapps/strata
> - Installing web application at context path /tomcat-docs from URL
> file:/opt/tom
> cat-strata/webapps/tomcat-docs
> - Starting Coyote HTTP/1.1 on http-8014
> - Port busy 8009 java.net.BindException: Address already in use
> - JK2: ajp13 listening on /0.0.0.0:8010
> - Jk running ID=1 time=2/101 config=/opt/tomcat-strata/conf/jk2.properties
> - Server startup in 6990 ms
>
>   Badly looking for response.
>
> Parthi
>
>

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

Reply via email to