Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This re-tools the client-side metrics/logging stuff to allow developers (and end users) to turn console logging on and off, have it persist across sessions, and capture logging at page start (to show initialization). The use-case is a developer/user who wants to review logs of what's occurring in the browser during an error or operation from multiple sources without having to add watch statements for each.
To test:
Galaxy.debugging( true )
-> You should see a large amount of logging messages prefixed by their namespaces ('GalaxyApp', 'history', 'collection', etc.)
To focus/filter on a particular namespace:
Galaxy.debuggingNamespaces([ 'collections', 'GalaxyApp' ])
-> Only logging from the collections and GalaxyApp namespaces are shown. Hopefully, this allows a decrease in noise v. signal.
To turn off namespace filtering:
Galaxy.debuggingNamespaces( null )
To turn off debugging:
Galaxy.debugging( false )
(You'll need to refresh the page for these to take effect usually)
These settings use localStorage and are persistent across sessions and tabs/windows.
To add namespacing and logger messages to your javascript objects:
To be improved at some point during the current epoch:
Tested in: Firefox, Chrome, Opera, Safari, Win7+IE11, Win10+Edge
@guerler