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

        Mircea Toma created issue -
        Mircea Toma made changes -
        Field Original Value New Value
        Assignee Mircea Toma [ mircea.toma ]
        Mircea Toma made changes -
        Fix Version/s 4.1 [ 11375 ]
        Fix Version/s EE-3.3.0.GA_P04 [ 12270 ]
        Mircea Toma made changes -
        Assignee Priority P1 [ 10010 ]
        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.
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #45898 Wed Aug 26 14:57:46 MDT 2015 mircea.toma ICE-10785 Add new local store based log handler.
        Files Changed
        Commit graph MODIFY /bridge-support/trunk/src/main/javascript/logger.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #45899 Wed Aug 26 15:05:23 MDT 2015 mircea.toma ICE-10785 Add new local store based global logging.
        Files Changed
        Commit graph MODIFY /icepush/trunk/icepush/core/src/main/resources/META-INF/ice.core/bridge-support.js
        Commit graph MODIFY /icepush/trunk/icepush/core/src/main/resources/META-INF/ice.core/bridge-support.uncompressed.js
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/javascript/application.js
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/resources/META-INF/resources/ice.core/bridge-support.uncompressed.js
        Commit graph MODIFY /icepush/trunk/icepush/core/src/main/javascript/application.js
        Commit graph ADD /icefaces4/trunk/icefaces/core/src/main/resources/META-INF/resources/ice.core/log.html
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/resources/META-INF/resources/ice.core/bridge-support.js
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        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.
        Mircea Toma made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #45929 Tue Sep 01 12:08:35 MDT 2015 mircea.toma ICE-10785 Disable local storage logging when localStorage variable is missing.
        Files Changed
        Commit graph MODIFY /bridge-support/trunk/src/main/javascript/logger.js
        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.
        Mircea Toma made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #45932 Tue Sep 01 12:26:18 MDT 2015 mircea.toma ICE-10785 Disable super-logging when local storage is missing. Displaying warning to inform user.
        Files Changed
        Commit graph MODIFY /icepush/trunk/icepush/core/src/main/resources/META-INF/ice.core/bridge-support.js
        Commit graph MODIFY /icepush/trunk/icepush/core/src/main/resources/META-INF/ice.core/bridge-support.uncompressed.js
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/resources/META-INF/resources/ice.core/bridge-support.uncompressed.js
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/resources/META-INF/resources/ice.core/log.html
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/resources/META-INF/resources/ice.core/bridge-support.js
        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.
        Ken Fyten made changes -
        Affects Documentation (User Guide, Ref. Guide, etc.) [ 10003 ]
        Ken Fyten made changes -
        Issue Type Bug [ 1 ] New Feature [ 2 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: