Documentation Menu

__jsnlog_configure function

If defined, the library executes this function after it has loaded.


This is an infrastructure related feature.

After the jsnlog.js library has loaded, it checks whether there is a global function with the name __jsnlog_configure. If there is, it executes that function.

The function takes one argument: the JL object itself. Here is how jsnlog.js calls the function, after having made sure that it actually exists:

if (typeof __jsnlog_configure == 'function') {

This method can be very useful when writing client side configuration code.