Search code examples
loggingline-breaks

how to create breaks in custom log file in cakephp 3


I want to breaks line after each info,error etc.


Solution

  • I found my question answer. If we want to line break in custom log file please use "PHP_EOL"

    Log::Info('Dashboard successfully running.'.PHP_EOL, 'custom_log');