Details
-
Type: New Feature
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.0
-
Fix Version/s: 4.1, EE-3.3.0.GA_P04
-
Component/s: Bridge
-
Labels:None
-
Environment:Supported browsers
-
Assignee Priority:P1
-
Affects:Documentation (User Guide, Ref. Guide, etc.)
Description
There is a need to capture and store the logging output by all the windows. This will save time when we try to debug a remote application.
Implementation-wise the HTML5 localStorage can be used since it allows us to store quite a large amount of data.
Implementation-wise the HTML5 localStorage can be used since it allows us to store quite a large amount of data.
Implemented localStorage based logging. The log page can be accessed at {protocol}://{host}:{port}/{context}/javax.faces.resource/log.html.jsf?ln=ice.core . The log entries are accumulated from all the windows connected to a certain DNS domain, regardless of the application context or servlet session.
The logging can be enabled or disabled only from the log page (it does not make sense to have a context parameter for it since the value will be overwritten). Also the size of the log can be set, the limit is defined in kilobytes to adjust it to the limits that each browser has for their local storage.
By default the global logging is disabled. When enabled the default maximum log size is 500kb. The values are persisted in the local storage thus they will survive a browser restart.