Troubleshooting analysis of log files of the day is not created when logs are written in Laravel 6
1. When writing a log in Laravel 6, the log file at that time was not created. When writing the log, the time of the operating system is Beijing time: 2023-09-15 11 , but laravel-2023-09-15.log is not generated. as shown in Figure 1
2. Found only Laravel-2023-09-14.log, print output: config(app.timezone). The reason for the discovery is that the time zone set in the Laravel program is: ETC/GMT+8. as shown in Figure 2
echo config('app.timezone');
exit;
3. In the “ETC” area, there is a positive sign in the west of Greenwich’s standard time, and the name of the east area has a minus sign. ETC/GMT+8 can be understood as the West Eight District, 16 hours earlier than Beijing time. So when writing the log, the time of the Laravel program is: 2023-09-14 19.

