ICEfaces
  1. ICEfaces
  2. ICE-10785

Create new global client-side logging

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major 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.

        Activity

        Hide
        Mircea Toma added a comment - - edited

        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.

        Show
        Mircea Toma added a comment - - edited 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.
        Hide
        Ken Fyten added a comment -

        As the global logging feature relies on the browser supporting local-storage, it will not be supported on IE8, IE7.

        Show
        Ken Fyten added a comment - As the global logging feature relies on the browser supporting local-storage, it will not be supported on IE8, IE7.
        Hide
        Mircea Toma added a comment - - edited

        Disable (with info) the logging when localStorage feature is missing.

        Show
        Mircea Toma added a comment - - edited Disable (with info) the logging when localStorage feature is missing.
        Hide
        Mircea Toma added a comment -

        Disable super-logging when local storage is missing. Displaying warning to inform user.

        Show
        Mircea Toma added a comment - Disable super-logging when local storage is missing. Displaying warning to inform user.
        Hide
        Ken Fyten added a comment -

        To clarify, this global logging feature should work on IE8+, FF, Chrome, and Safari browsers. On IE7 it should indicate lack of support on the log page.

        Show
        Ken Fyten added a comment - To clarify, this global logging feature should work on IE8+, FF, Chrome, and Safari browsers. On IE7 it should indicate lack of support on the log page.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Mircea Toma
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: