Plack logs (e.g., plack-intranet.log) do not include timestamps in the same format as other Koha logs. Test plan 1- Disable Plack sudo koha-plack --disable kohadev sudo koha-plack --stop kohadev sudo service apache2 restart 2- Create an error mv mainpage.pl mainpage.pl.test 3- Go to: http://intranet/cgi-bin/koha/mainpage.pl 4- Check the logs: tail /var/log/koha/kohadev/intranet-error.log The date is correctly formatted: [Fri Mar 13 23:48:12.505999 2026] 5- Enable Plack sudo koha-plack --enable kohadev sudo koha-plack --start kohadev sudo service apache2 restart 6- Repeat steps 3 and 4 ==> the date format is different from step 4. 7- Modify /etc/koha/sites/kohadev/log4perl.conf and Replace [%d] with: [%d{EEE MMM dd HH:mm:ss yyyy}] (This is exactly what the patch does) 8- Restart Plack sudo koha-plack --restart kohadev 9- Repeat steps 3 and 4 The format is now consistent with step 4. [Fri Mar 13 23:52:30 2026]
Created attachment 195367 [details] [review] Bug 42101: Add timestamps to Plack logs Plack logs (e.g., plack-intranet.log) do not include timestamps in the same format as other Koha logs. Test plan 1- Disable Plack sudo koha-plack --disable kohadev sudo koha-plack --stop kohadev sudo service apache2 restart 2- Create an error mv mainpage.pl mainpage.pl.test 3- Go to: http://intranet/cgi-bin/koha/mainpage.pl 4- Check the logs: tail /var/log/koha/kohadev/intranet-error.log The date is correctly formatted: [Fri Mar 13 23:48:12.505999 2026] 5- Enable Plack sudo koha-plack --enable kohadev sudo koha-plack --start kohadev sudo service apache2 restart 6- Repeat steps 3 and 4 ==> the date format is different from step 4. 7- Modify /etc/koha/sites/kohadev/log4perl.conf and Replace [%d] with: [%d{EEE MMM dd HH:mm:ss yyyy}] (This is exactly what the patch does) 8- Restart Plack sudo koha-plack --restart kohadev 9- Repeat steps 3 and 4 The format is now consistent with step 4. [Fri Mar 13 23:52:30 2026]