PDA

View Full Version : Tomcat logs and error_log


jamesdlow
02-18-2011, 04:40 AM
Hi,

I'm starting to evaluate Caucho for our PHP applications running with Tomcat.

We have some logging that uses error_log. I would like to send this to the standard Tomcat log without hardcoding the same file name. I have tried using the php function error_log($msg) and error_log($msg, 4) and both times it throws an error saying a filename isn't specified.

Is it possible to use error_log to write straight to the tomcat log without specifying a file name?

Thanks,
James