LOGGER table stores only integers, any textual description is automatically added into lookup table LOGGER_LABELS.
Label of any event is added at first use.
- Username: If you have application with authorisation enabled, logger class stores ID of currently logged user
- Logger: Specified in logger constructor. You can have more than one logger in application, with different configurations.
- Event and ID: Any action in our application is identified by string (route)
"$controller/$action/$id" which means: do action $action of controller $controller with object $id.
This structure is supported by class 'app' (now in experimental stage).
However, Event (Action) label is plain text, so you can log anything here.
We use Action label in format "appname/controller/action" where appname is application name (demo) and controller is name of the visited example.
- MSG: It's possible add free text message to any event. If you add message, it is stored in table LOGGER_MESSAGES.
- Try click on these links, for adding events into log:
Timestamp | Username | Category | Logger | Event | User Agent | ID | MSG | |
---|---|---|---|---|---|---|---|---|
2024-12-03 18:39:26 | WARNING | app-monitor | demo/eventlog/warning1 | ? Mozilla like | 3.17.154.xxx | |||
2024-11-30 02:02:20 | NOTICE | app-monitor | demo/eventlog/action1 | ? Mozilla like | 77.75.78.xxx | |||
2024-11-29 22:40:41 | php/error | pcl_demo | Error | ? Mozilla like | 85.208.96.xxx | |||
2024-11-28 14:47:22 | NOTICE | app-monitor | demo/eventlog/action2 | ? Mozilla like | 217.113.194.xxx | 100 | ||
2024-11-28 14:26:50 | NOTICE | app-monitor | demo/eventlog/action1 | ? Mozilla like | 217.113.194.xxx | |||
2024-11-27 22:37:42 | php/error | pcl_demo | Error | ? ? | 144.76.68.xxx | |||
2024-11-27 21:43:56 | NOTICE | app-monitor | demo/eventlog/action1 | ? ? | 144.76.68.xxx | |||
2024-11-27 21:43:52 | NOTICE | app-monitor | demo/eventlog/action2 | ? ? | 144.76.68.xxx | 100 | ||
2024-11-27 21:35:29 | php/error | pcl_demo | Error | ? ? | 144.76.68.xxx | |||
2024-11-27 21:33:00 | WARNING | app-monitor | demo/eventlog/warning1 | ? ? | 144.76.68.xxx | |||
2024-11-25 15:04:47 | php/error | pcl_demo | Error | MacOS Safari | 50.19.79.xxx | |||
2024-11-24 19:15:42 | NOTICE | app-monitor | demo/eventlog/action1 | ? Mozilla like | 77.75.78.xxx | |||
2024-11-23 10:31:24 | NOTICE | app-monitor | demo/eventlog/action2 | ? Mozilla like | 3.144.82.xxx | 100 | ||
2024-11-22 04:18:19 | NOTICE | app-monitor | demo/eventlog/action2 | MacOS Safari | 52.71.216.xxx | 100 | ||
2024-11-22 04:18:15 | NOTICE | app-monitor | demo/eventlog/action1 | MacOS Safari | 18.204.89.xxx | |||
2024-11-22 04:18:11 | WARNING | app-monitor | demo/eventlog/warning1 | MacOS Safari | 34.235.239.xxx | |||
2024-11-21 16:10:26 | php/error | pcl_demo | Error | Windows Firefox | 193.85.245.xxx | |||
2024-11-21 16:08:23 | php/error | pcl_demo | Error | Windows Firefox | 193.85.245.xxx | |||
2024-11-21 16:07:51 | php/error | pcl_demo | Error | ? ? | 193.85.245.xxx | |||
2024-11-21 16:02:52 | php/error | pcl_demo | Error | ? ? | 193.85.245.xxx |
Source code: eventlog.php | eventlog.tpl
Elapsed time: 3.69 ms