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-08-12 07:32:04 | php/error | pcl_demo | Error | ? Mozilla like | 52.230.152.xxx | |||
2024-08-12 06:25:32 | WARNING | app-monitor | demo/eventlog/warning1 | ? Mozilla like | 52.230.152.xxx | |||
2024-08-12 06:25:26 | NOTICE | app-monitor | demo/eventlog/action1 | ? Mozilla like | 52.230.152.xxx | |||
2024-08-12 06:25:23 | NOTICE | app-monitor | demo/eventlog/action2 | ? Mozilla like | 52.230.152.xxx | 100 | ||
2024-08-12 06:25:16 | php/error | pcl_demo | Error | ? Mozilla like | 52.230.152.xxx | |||
2024-08-08 10:56:18 | php/error | pcl_demo | Error | ? Mozilla like | 54.36.149.xxx | |||
2024-08-03 09:02:49 | php/error | pcl_demo | Error | ? Mozilla like | 52.230.152.xxx | |||
2024-08-03 08:58:40 | WARNING | app-monitor | demo/eventlog/warning1 | ? Mozilla like | 52.230.152.xxx | |||
2024-08-03 08:58:30 | NOTICE | app-monitor | demo/eventlog/action2 | ? Mozilla like | 52.230.152.xxx | 100 | ||
2024-08-03 08:58:27 | NOTICE | app-monitor | demo/eventlog/action1 | ? Mozilla like | 52.230.152.xxx | |||
2024-08-01 21:32:41 | php/error | pcl_demo | Error | ? Mozilla like | 85.208.96.xxx | |||
2024-07-28 05:09:28 | WARNING | app-monitor | demo/eventlog/warning1 | ? Mozilla like | 77.75.78.xxx | |||
2024-07-22 14:23:40 | NOTICE | app-monitor | demo/eventlog/action2 | ? Mozilla like | 5.255.231.xxx | 100 | ||
2024-07-22 14:15:33 | NOTICE | app-monitor | demo/eventlog/action2 | ? Mozilla like | 213.180.203.xxx | 100 | ||
2024-07-22 14:07:21 | NOTICE | app-monitor | demo/eventlog/action2 | ? Mozilla like | 5.255.231.xxx | 100 | ||
2024-07-22 13:50:30 | NOTICE | app-monitor | demo/eventlog/action2 | ? Mozilla like | 213.180.203.xxx | 100 | ||
2024-07-22 13:42:33 | NOTICE | app-monitor | demo/eventlog/action2 | ? Mozilla like | 213.180.203.xxx | 100 | ||
2024-07-22 13:07:05 | WARNING | app-monitor | demo/eventlog/warning1 | ? Mozilla like | 213.180.203.xxx | |||
2024-07-22 13:05:47 | NOTICE | app-monitor | demo/eventlog/action2 | ? Mozilla like | 95.108.213.xxx | 100 | ||
2024-07-22 13:05:44 | NOTICE | app-monitor | demo/eventlog/action1 | ? Mozilla like | 5.255.231.xxx |
Source code: eventlog.php | eventlog.tpl
Elapsed time: 3.9 ms