2
I am developing a data management system in PHP Laravel 5.
In this system I want to put a Logs.
1 - Laravel has some library that facilitates this system ?
2 - If Laravel doesn’t have the best way to make a system like this ?
3 - How can I model the data in the database ?
I thought the following case:
User Fulano (whosoever) changed/created/deleted/forwarded (action) called ID 43 (what) on the date 17/11/2015 (when).
And I thought of a simple table with the following columns:
ID_LOG
ID_USER
ACAO
DESCRICAO
DATA
Perhaps the question is wide when I use the expressions 'what’s the best way' or 'how can I do'.
My main question is whether the Laravel can make things easier for me.
No monolog coming along?
– rray
So I don’t know how to use this. But you have this folder in the folder vendor. I don’t know what your use is.
– Diego Souza
May be a start => http://answall.com/a/72844/91
– rray
The Laravel page can help you http://laravel.com/docs/4.2/errors
– Wallace Maxters
@Taopaipai, had a system that I did it. Only I did only for "strange accesses", ie only when I had error 500. You can do it with the Model events. For example
saving
,updating
, who will identify that the model had a rescue event.– Wallace Maxters
@rray. But it is possible to write to the database instead of a file
.log
using the Monolog ?– Diego Souza