|
From: Jost B. <jos...@ya...> - 2005-11-19 17:39:44
|
Hi Victor,
> I am reading the php-java-bridge.log, but there
> is no timestamp.
the java bridge servlet logger does not provide a
timestamp; printing the log with a timestamp is the
servlet engine's job.
> Does the log
> support timestamp? If so, how to turn it on?
For the standalone component the timestamp is on by
default. For the servlet engine it is off, but you can
provide your own logger, for example:
public class MyServlet extends PhpJavaServlet {
public static class Logger extends
PhpJavaServlet.Logger {
public String now() {
// or something
return String.valueOf(
new java.sql.Timestamp(
System.currentTimeMillis())):
}
}
...
}
Please see the API for details:
http://cvs.sourceforge.net/viewcvs.py/*checkout*/php-java-bridge/php-java-bridge/server/doc/php/java/servlet/PhpJavaServlet.Logger.html?rev=1.2
However, I think your servlet engine should have the
capability to print its log with a timestamp, it
should be an option in the server.xml.
Regards,
Jost Boekemeier
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
|