-
Type:
Feature Request
-
Status: Closed
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 5.1.2-B1
-
Fix Version/s: 5.2.1-B1
-
Component/s: System Log
-
Labels:None
-
External issue URL:
-
Additional information:
-
Change Log Message:Added powerful Event Logging engine
-
Story Points:3
-
External issue ID:1003
-
Copy Issue Key:
-
Patch Instructions:
In-Portal has very powerful logging system when debug mode is on, but if developer won't look at errors reported there in time (e.g. before he closes the page with debugger), then most probably he won't get same error next time.
Also In-Portal has nice "Silent Log" feature, when all errors got written to file, but it is turned off by default and that log (since it's a text file) can't be easily analysed.
So this is good error reporting code, but it's results are not being recorded for future analysis and what's is recorded is not enough to properly pinpoint problematic place in code after error already happened and there is no more place to retrieve data from.
To solve above mentioned issues I'm proposing to create kLogger class (and associated SystemLog table), that would:
- handle sql error processing
- handle php error/notice/warning processing
- handle exception processing
- handle user-defined messages
What should be recorded along with each event being logged:
- $_SERVER['HTTP_HOST'] - address of page's webserver (useful in multi-user development environment)
- $_SERVER['REMOTE_ADDR'] - ip address of page visitor
- current user id (guest or not)
- SessionData/UserSession table - session data
- SessionID - session id (when available)
- $_GET, $_POST, $_COOKIE - user input on page, where event happened
- $_SERVER['REQUEST_URI'] - url that was used to access the page
- $this->Application->isAdmi - is user an admin or not
- complete trace to the php method, that raised that event
[TODO] * occurrences count: today/yesterday/last week/last month
[TODO] * last occurrence on - date/time when event was raised
Automatic system log cleanup:
- none
- automatic (weekly)
- automatic (monthly)
In Admin Console there will be a new section under "Summary & Logs" called "System Log" with list of all logged events, that happened.
- parent of
-
INP-1135 Move random number generator to central location
-
- Closed
-
-
INP-1138 Submitting system logs to Intechnic servers
-
- New
-
-
INP-1153 Don't recursively remove line endings, when creating plain text e-mail from html one
-
- Closed
-
-
INP-1192 Hide "System Log" section for "Simple" preset
-
- Closed
-
-
INP-1221 Ignore any exception, that happens during stringifying attempt of "kBase" sub-class
-
- Closed
-
-
INP-1234 Add default access permissions for "System Log" section
-
- Closed
-
- relates to
-
INP-1245 Use "System Log" to log HTTP requests
-
- Resolved
-
-
INP-224 [ONGOING] Code Cleanup in 5.2.x branch
-
- Closed
-
-
INP-1140 Improve "form validation error" message, that is shown in Debugger
-
- Closed
-
-
INP-1142 Show "settings saved" message only, when all changes to configuration settings were saved
-
- Closed
-
-
INP-1151 Use "adm_SetPopupSize" tag in 100% of editing templates in Admin Console
-
- Closed
-
-
INP-1152 Fix multiple notices discovered while developing System Log
-
- Closed
-
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Wiki Page Loading...
-
Wiki Page Loading...
-
Wiki Page Loading...