I am using the laravel and trying to log the messages.
Log::info('[ProductViewModel/validate] First line message. \r\nSecond line message.');
Why \r\n
not working and just show the output like below.
[2016-03-21 10:17:43] local.INFO: [ProductViewModel/validate] First line message. \r\nSecond line message.
you can use PHP_EOL as line break
Log::info('[ProductViewModel/validate] First line message'. PHP_EOL .'Second line message');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With