Re: How do I enable more useful PHP error logging?

From: Date: Wed, 29 Feb 2012 01:47:08 +0000
Subject: Re: How do I enable more useful PHP error logging?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-316796@lists.php.net to get a copy of this message
On Tue, Feb 28, 2012 at 3:14 PM, Daevid Vincent <daevid@daevid.com> wrote: > My question is, is there a way to enable some PHP configuration that would > output more verbose information, such as a backtrace or the URL attempted? > Have you looked at log4php? [1] It's a log4j (Java based) logging facility port to PHP. IIRC for log4j, you can do various logging from FINEST, FINER, FINE, INFO, WARNING, ERROR (?), SEVERE levels within the application. You can adjust levels as needed at run time. You may want to have a wrapper that will do back trace and record the requested URL. The log4* facility does rolling file logging, DB, e-mail, syslog, etc. (I've used the log4j and log4net before.) Very handy and flexible, IMO. HTH, Tommy [1] http://logging.apache.org/

« previous php.general (#316796) next »