In some cases I need to share log files in real time or see log without root access, so I had adapted this code to get log of current day:
Configuration
Change path in set.php file
The default user and password are
DEV
12345
Make sure that php-error-log-viewer.ini is writeable
credits: https://github.com/schuhwerk/php-error-log-viewer
Configuration
Change path in set.php file
Code:
<?php $today = date('Y-m-d'); $data = "file_path='[ESPOCRM_PATH]/data/logs/espo-{$today}.log'\n" . "vscode_path_search='/srv/www/spaces/current/'\n" . "vscode_path_replace='C:\doll\spaces\'\n"; file_put_contents('php-error-log-viewer.ini', $data);
DEV
12345
Make sure that php-error-log-viewer.ini is writeable
credits: https://github.com/schuhwerk/php-error-log-viewer
Comment