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-11-13 05:30:19 | WARNING | app-monitor | demo/eventlog/warning1 | ? Mozilla like | 20.171.206.xxx | |||
2024-11-13 05:30:17 | NOTICE | app-monitor | demo/eventlog/action2 | ? Mozilla like | 20.171.206.xxx | 100 | ||
2024-11-13 05:30:16 | NOTICE | app-monitor | demo/eventlog/action1 | ? Mozilla like | 20.171.206.xxx | |||
2024-11-13 05:29:51 | php/error | pcl_demo | Error | ? Mozilla like | 20.171.206.xxx | |||
2024-11-11 17:30:55 | NOTICE | app-monitor | demo/eventlog/action1 | ? Mozilla like | 77.75.76.xxx | |||
2024-11-09 02:37:34 | NOTICE | app-monitor | demo/eventlog/action1 | ? Mozilla like | 77.75.76.xxx | |||
2024-11-05 18:14:54 | php/error | pcl_demo | Error | ? ? | 3.238.202.xxx | |||
2024-10-30 22:29:42 | NOTICE | app-monitor | demo/eventlog/action1 | ? Mozilla like | 77.75.78.xxx | |||
2024-10-29 16:19:54 | php/error | PClib demo | Error | ? ? | 57.141.7.xxx | |||
2024-10-29 16:19:54 | php/error | PClib demo | Error | ? ? | 57.141.7.xxx | |||
2024-10-29 16:19:53 | php/error | PClib demo | Error | MacOS Safari | 3.89.176.xxx | |||
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 |
Source code: eventlog.php | eventlog.tpl
Elapsed time: 30.85 ms