improved save method of Item to reduce db requests.
Created "logs" folder with structure like so:
logs/
2023/
January/
app.log
error.log
February/
app.log
error.log
...
2022/
...
The folders are created automatically if they don't already exist.
Each file is maxed at 5MB. When the log file reaches this size, it will be rotated, i.e. a new log file will be created, and the old log file will be saved with a different name, up to 5 files.
improved
save
method of Item to reduce db requests.Created "logs" folder with structure like so: logs/ 2023/ January/ app.log error.log February/ app.log error.log ... 2022/ ...
The folders are created automatically if they don't already exist.
Each file is maxed at 5MB. When the log file reaches this size, it will be rotated, i.e. a new log file will be created, and the old log file will be saved with a different name, up to 5 files.