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-10-29 16:19:52 | php/error | PClib demo | Error | ? ? | 57.141.7.xxx | |||
2024-10-29 16:19:49 | php/error | PClib demo | Error | ? ? | 57.141.7.xxx | |||
2024-10-29 16:19:49 | php/error | PClib demo | Error | ? ? | 57.141.7.xxx | |||
2024-10-29 16:19:49 | php/error | PClib demo | Error | MacOS Safari | 3.212.86.xxx | |||
2024-10-23 03:04:10 | php/error | pcl_demo | Error | MacOS Safari | 54.166.126.xxx | |||
2024-10-23 03:01:58 | NOTICE | app-monitor | demo/eventlog/action1 | MacOS Safari | 34.206.212.xxx | |||
2024-10-23 03:01:54 | NOTICE | app-monitor | demo/eventlog/action2 | MacOS Safari | 34.192.67.xxx | 100 | ||
2024-10-23 03:01:50 | WARNING | app-monitor | demo/eventlog/warning1 | MacOS Safari | 52.202.233.xxx | |||
2024-10-11 21:05:54 | NOTICE | app-monitor | demo/eventlog/action2 | ? Mozilla like | 217.113.194.xxx | 100 | ||
2024-10-10 12:57:39 | php/error | pcl_demo | Error | ? Mozilla like | 85.208.96.xxx | |||
2024-10-09 08:20:43 | php/error | pcl_demo | Error | ? Mozilla like | 85.208.96.xxx | |||
2024-10-08 00:43:30 | php/error | pcl_demo | Error | ? Mozilla like | 20.171.206.xxx | |||
2024-10-08 00:43:03 | php/error | pcl_demo | Error | ? Mozilla like | 20.171.206.xxx | |||
2024-10-08 00:42:45 | php/error | pcl_demo | Error | ? Mozilla like | 20.171.206.xxx | |||
2024-10-08 00:26:38 | NOTICE | app-monitor | demo/eventlog/action1 | ? Mozilla like | 20.171.206.xxx | |||
2024-10-08 00:26:30 | WARNING | app-monitor | demo/eventlog/warning1 | ? Mozilla like | 20.171.206.xxx | |||
2024-10-08 00:26:29 | NOTICE | app-monitor | demo/eventlog/action2 | ? Mozilla like | 20.171.206.xxx | 100 | ||
2024-10-08 00:26:01 | php/error | pcl_demo | Error | ? Mozilla like | 20.171.206.xxx | |||
2024-10-06 04:09:58 | NOTICE | app-monitor | demo/eventlog/action2 | ? Mozilla like | 217.113.194.xxx | 100 | ||
2024-09-30 10:34:34 | WARNING | app-monitor | demo/eventlog/warning1 | ? Mozilla like | 95.108.213.xxx |
Source code: eventlog.php | eventlog.tpl
Elapsed time: 3.91 ms