Skip to main content

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

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);
        }
    }
}



Back to the top