如何在cakephp 3中的自定义日志文件中创建中断

问题描述 投票:-1回答:1

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

logging line-breaks
1个回答
0
投票

我找到了问题的答案。如果我们想在自定义日志文件中换行,请使用“PHP_EOL”

Log :: Info('仪表板成功运行.'.PHP_EOL,'custom_log');

© www.soinside.com 2019 - 2024. All rights reserved.