magic is happening
Read Time25Seconds

As you may know according to the default configuration of CakePHP the debug and error log is generated in the same file. But this can be changed in a few simple steps. All you have to do is following.

  1. Got to config/app.php
  2. Find the ‘Log’ configuration array
  3. In both debug and error replace the ‘file’ with “’debug-‘ . date(‘Y-m-d’),” and “’error-‘ . date(‘Y-m-d’),” respectively
  4. Save the file and you are good to go.

Now, the log will be generated on a daily basis.

0 0

About Post Author

samgan

samgan excel at solving complex problems involving logic and step by step breakdown of the problem. In addition, to develop complex algorithms, he specialize in problem framing, systems design, and product development strategy. Sometimes he also enjoy public speaking.
0 %
Happy
0 %
Sad
0 %
Excited
0 %
Angry
0 %
Surprise

Leave a Reply

Your email address will not be published. Required fields are marked *

Close
Social profiles