Getting Started With The Unified Logging jQuery Plugin

Knowing what happens in all portions of your software is important so why not see what is going on in your JavaScript?

The jQuery Plugin for Unified Logging is very simple and straight forward.

1. Create a JSAuth key on the Profile Page.  Add a comment for reference so you know where it is being used.


2. Download the jQuery Plugin via the Use It page or from NuGet

3. In your website code make sure jQuery is added before unifiedlogging-1.0.min.js

4. Initialize the plugin using your JSAuth Key, Access Key and choose your logging level (the Error level is shown below).  It is recommended that the plugin be initialized early on and in a common JavaScript file for easy future maintenance.

$.ullog({ ‘JSAuth’: ‘[your js auth key]’, ‘Authorization’: ‘[your auth key]’, ‘LoggingLevel’: ULLOG.Levels.ERROR });

5. Start logging!  The best way to get started is to use the shortcut functions for the different levels of logging.  The message is self explanatory and the source is where the log entry is coming from.

           $.ullog().error(‘message’, ‘source’);
           $.ullog().warn(‘message’, ‘source’);
           $.ullog().info(‘message’, ‘source’);
           $.ullog().debug(‘message’, ‘source’);

Comments are closed.