0

I want to create log specially for Paypal, so how to create and write log. I am using syntax like in controller

$this->log("\n The payment status is completed\n", 'paypal_log');

in bootstrap.php

App::uses('CakeLog', 'Log');
4
  • I have no idea buddy,I have copied from book.cakephp.org/2.0/en/core-libraries/… Commented Jul 6, 2013 at 7:36
  • but its not giving me any error Commented Jul 6, 2013 at 7:38
  • neither its creating any log neither its giving any error Commented Jul 6, 2013 at 7:38
  • I have same problem as stackoverflow.com/questions/14936228/… Commented Jul 6, 2013 at 7:46

2 Answers 2

2

add in bootstrap.php

CakeLog::config('my_log', array('engine' => 'FileLog'));
Sign up to request clarification or add additional context in comments.

1 Comment

For this to be the answer - seems quite likely your bootstrap file doesn't have a default log configuration in it.
1

try

CakeLog::write('paypal_log', 'Got here');

1 Comment

its not creating any log file

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.