Skip to content

v5.0.0

Latest

Choose a tag to compare

@danielme85 danielme85 released this 28 Jul 00:28

Highlights

  • Support Laravel 12 and 13, PHP 8.2+
  • Fix the default datetime_format (Y-m-d H:i:s:ms, an invalid PHP date() token) that corrupted the stored datetime column in v4; new default is Y-m-d H:i:s
  • Add php artisan log:fix-datetime command to recompute datetime from unix_time on existing v4 rows
  • Remove AuthenticatedUserProcessor
  • Fix unix_time drift on queued log events: it now reflects the original log event time instead of when a delayed queue worker happened to process the job
  • Fix a per-channel model override being ignored by log:delete / log:fix-datetime, which could silently operate on the wrong table
  • Fix a per-channel datetime_format override not being applied when writing records
  • log:fix-datetime now skips records with a missing/non-numeric unix_time instead of corrupting their datetime to the 1970-01-01 epoch

⚠️ Upgrading from v4?

v4's default datetime_format used an invalid PHP date() token and corrupted the stored datetime column. Existing rows aren't auto-corrected. After upgrading, run:

php artisan log:fix-datetime

See the readme and CHANGELOG.md for full details.