Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Why does servlet.log() write to start.log?

Thanks, I put in the overrides, so this does not affect my choice of version to run. 

Out of this, I also found a processing stopping issue in 7.6.1.  Made a separate thread for it, but it looks like there is a choice of either 7.5.4, or 7.6.0 & no JVM arguments, or 7.6.1 & a crude stopping mechanism.


----- Original Message -----
From: janb@xxxxxxxxxxx
To: info@xxxxxxxxxxxxxxxxx
Sent: Wed, March 7, 2012, 6:16 PM
Subject: Re: [jetty-users] Why does servlet.log() write to start.log?

Sounds like a bug, so I raised:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=373605

Jan

On 8 March 2012 09:03, Jeff Palmer wrote:
> Ever since 7.6 or 8.1, the two messages below do not get written to the
> 20xx_xx_xx.stderrout.log.  They just go to start.log.  If you restart the
> process all your logs are wiped out.
>
> Does anyone else get this?  Have tried both 8.1.0 & 7.6.1.  Was successful
> with 7.5.4.  Have all on the same system & control which runs with symbolic
> link pointer.  Find no differences in .xml files to cause this.
>
> Should I just over-ride the 2 log() methods, writing to System.out, adding a
> timestamp, and move on?
> - - - - - - - - - - -
> public class MyServlet extends HttpServlet{
>
>     protected void doPost(HttpServletRequest request, HttpServletResponse
> response){
>         try{
>             super.log("I am a message");
>             System.out.println("This does go the right place");
>         }
>         catch(Throwable th){
>             super.log("I am an error", th);
>         }
>     }
> }
>
>
>
> _______________________________________________
> jetty-users mailing list
> jetty-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>

Back to the top