cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
651
Views
0
Helpful
1
Replies

Logging issue .

Roy_11
Spotlight
Spotlight

Hi Team ,

 

i am facing one issue in logging for finesse Gadget, How to create the Module in XML ?

it's HTML file possible to Create module ??? if its possible please share format Code.

we have to initiate the Module for finesse then only we have to map the same module name in js for Logging correct ???

Example for Module Creation . below

function log() {
if (!window.console || !window.console.log) {
return;
}
$.each(arguments, function(i, m) {
window.console.log(m);
});
}

log('------------>>>>>1');
gadgets.HubSettings.onConnect = function () {
log('------------>>>>>2');
finesse.modules.agentabi.init();

return;

try{
finesse.modules.agentabi.init();
}catch(e){
if (e.message){
log('>>>ERROR:' + e.message);
}else{
log(e);
}
}
};

 

 

 

what i did as of Now , please find below In  my JS file s. 

var finesse = finesse || {};
finesse.gadget = finesse.gadget || {};
finesse.container = finesse.container || {};

finesse.modules = finesse.modules || {};
finesse.modules.Sample = (function($) {
var _clientLogger = finesse.cslogger.ClientLogger;
 
return {
        /**
         * Performs all initialization for this gadget
         */
        init : function () {
            
            _clientLogger.init(gadgets.Hub, "Sample"); //this gadget id will be logged as a part of the message
            
            _clientLogger.log("Initializing Container Services...")
finesse.containerservices.ContainerServices.makeActiveTabReq();
            
        } // init function
    }; // return

 

my logs are not refelect in CLient logs . may i know issues in my code ?

 

please guide me on this team , please ....

 

thanks!

Ran

 

 

1 Reply 1

Roy_11
Spotlight
Spotlight
Please any one reply on this issue