i opened a ticket for that quite some time ago: http://cakephp.lighthouseapp.com/projects/42648/tickets/267-tracing-should-be-available-in-productive-error-logging
it shows you how to do that i use it now for several months and it already paid of like 1000000 times i dont understand why this is not yet part of the core logging handling On 18 Jun., 10:48, Jonas <[email protected]> wrote: > I tried the approach of subclassing the error handler like this: > > Created a file app_error.php in srv/app: > > App::import('Core', 'Email'); > > class AppError extends ErrorHandler > { > function __construct($method, $messages) > { > //Configure::write('debug', 1); > parent::__construct($method, $messages); > } > > function _outputMessage($template) > { > $this->log('Show error here.'); > > parent::_outputMessage($template); > } > } > > But the log doesn't come out. In error.php a similar log in > _outputMessage comes out... > It doesn't seem to matter if I set debug to 1 or 0. > Must I do something more for it to use my AppError class? > > Thanks! > > /Jonas > On Jun 18, 8:06 am, John Andersen <[email protected]> wrote: > > > > > Be sure that you have not turned off error logging! > > See the CakePHP book at:http://book.cakephp.org/view/1189/Debugging > > > Maybe you can use the debugging class to track down your issue! > > > Also take a look at the Error handling > > at:http://book.cakephp.org/view/1188/Error-Handling > > > Maybe that too can be an option! > > > Else you can put log statements across your application, using $this->log > > statements. > > > Hope this helps you resolve your issue. > > Enjoy, > > John > > > On Jun 18, 8:07 am, Jonas <[email protected]> wrote: > > > > I have a site which throws a mysterious amount of 404 - errors in > > > production. Since it's a public site I can't put debug on and see what > > > errors PHP / Cake is throwing at me. > > > > Can I somehow redirect those errors to a file instead? It's not doing > > > it by default..both error.log and debug.log is empty... > > > > Thanks! > > > > /Jonas Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
