Filament Activity Logger to show old and new values
Right now I see only the new value. But I don't see the old one. Does it log only the new value that has been changed?

properties I see only this {"name": "User Changed 3rd", "updated_at": "2023-12-20 00:35:37"}
Hi it was an intentional choice to keep this very simple... You could disable the resource loggers and use the logging functionality provided by the base spatie-activity log
config/activitylog.php ?\Z3d0X\FilamentLogger\Loggers\ResourceLogger::class with your own logger (you can see this file for the current implementation https://github.com/Z3d0X/filament-logger/blob/main/src/Loggers/AbstractModelLogger.php)filament-logger.php config file disable the https://github.com/Z3d0X/filament-logger/blob/main/config/filament-logger.php#L9. Then use configure your models for using the base spatie's activity log package https://spatie.be/docs/laravel-activitylog/v2/advanced-usage/logging-model-eventsproperties{"name": "User Changed 3rd", "updated_at": "2023-12-20 00:35:37"}[
'attributes' => [
'name' => 'updated name',
'text' => 'Lorum',
],
'old' => [
'name' => 'original name',
'text' => 'Lorum',
],
];config/activitylog.php\Z3d0X\FilamentLogger\Loggers\ResourceLogger::classfilament-logger.php<?php
return [
/*
* If set to false, no activities will be saved to the database.
*/
'enabled' => env('ACTIVITY_LOGGER_ENABLED', true),
/*
* When the clean-command is executed, all recording activities older than
* the number of days specified here will be deleted.
*/
'delete_records_older_than_days' => 365,
/*
* If no log name is passed to the activity() helper
* we use this default log name.
*/
'default_log_name' => 'default',
/*
* You can specify an auth driver here that gets user models.
* If this is null we'll use the current Laravel auth driver.
*/
'default_auth_driver' => null,
/*
* If set to true, the subject returns soft deleted models.
*/
'subject_returns_soft_deleted_models' => false,
/*
* This model will be used to log activity.
* It should implement the Spatie\Activitylog\Contracts\Activity interface
* and extend Illuminate\Database\Eloquent\Model.
*/
'activity_model' => \Spatie\Activitylog\Models\Activity::class,
/*
* This is the name of the table that will be created by the migration and
* used by the Activity model shipped with this package.
*/
'table_name' => 'activity_log',
/*
* This is the database connection that will be used by the migration and
* the Activity model shipped with this package. In case it's not set
* Laravel's database.default will be used instead.
*/
'database_connection' => env('ACTIVITY_LOGGER_DB_CONNECTION'),
];