mitydigital / statamic-logger

Detailed, customisable and human-friendly audit logging for Statamic
MIT License
2 stars 1 forks source link

Support for database #11

Open georgecoca opened 1 month ago

georgecoca commented 1 month ago

Hi,

We use Statamic with Eloquent Driver (https://statamic.com/addons/statamic/eloquent-driver), which all the data is stored in database.

Is it possible to store the logs in database instead of file?

Thanks.

martyf commented 1 month ago

At this stage, no, because everything is stored in Log files, just like how Laravel logs things too.

Theoretically it could be in a database however do not have that scheduled at this stage, and would be a bit of a refactor to have it support both a database and Log files. Not saying never, but not on the immediate radar. Happy to chat further if you wanted to consider a PR or work together on it.