cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6276
Views
5
Helpful
26
Replies

Finesse Logging

Roy_11
Spotlight
Spotlight

Hi Team,


Some Quick Question on Finesse Gadgets Logging , i will going to step up finesse Logging for Gadgets , can you guide me on this one ,please please .. If you have any sample code for Logging Finesse Gadgets please share me , help me on this . Please Team .

thanks !

2 Accepted Solutions

Accepted Solutions

Quigath
Spotlight
Spotlight

You should begin by looking at how the sample finesse apps do logging.

 

In my javascript file I have code like:

clientLogs = finesse.cslogger.ClientLogger || {};
...
clientLogs.log("makeRequest()");

Then use either locallog or RTMT to view the logged data.

View solution in original post

dekwan
Cisco Employee
Cisco Employee

Cool. I'm glad I was able to help.

 

Thanx,

Denise

View solution in original post

26 Replies 26

Roy_11
Spotlight
Spotlight
Sample Code for any gadgets for Logging . please

dekwan
Cisco Employee
Cisco Employee

Hi,

 

Adding logging to the gadget is pretty straightforward. You can take a look at the final version of the LearningSampleGadget as an example.

 

In the init of the gadget, just initialize the client logs:

clientLogs.init(gadgets.Hub, "SampleGadget");

Then when you want to add a log statement, just do this:

clientLogs.log("This is my log statement");

In order to get these logs, the agent must push the "Send Error Report" button on the desktop and it will be sent to the Finesse server under the Finesse's logs in a folder called clientLogs.

 

Thanx,

Denise

Thanks Denise

Hi Denise,

 

 

Just two Lines of code is enough for gadgets logging to Finesse Clients logs , anythings else to do ???

 

please let me know ,

 

thanks!

 

 

Hi denise,


i have to declare any variable for client logging init ???

dekwan
Cisco Employee
Cisco Employee

Hi,

 

Yes you do:

clientLogs = finesse.cslogger.ClientLogger;

Like I said earlier, take a look at the final version of the LearningSampleGadget. It has client logging working already. 

 

Thanx,

Denise

Quigath
Spotlight
Spotlight

You should begin by looking at how the sample finesse apps do logging.

 

In my javascript file I have code like:

clientLogs = finesse.cslogger.ClientLogger || {};
...
clientLogs.log("makeRequest()");

Then use either locallog or RTMT to view the logged data.

Thanks!

Hi Quigath ,


I am facing issue while update the gadgets logging to Client Logs

init : function () {
var finConfig = finesse.gadget.Config;
finesse.clientservices.ClientServices.init(finConfig, false);
_clientLogger.init(gadgets.Hub, "Gadget", finConfig);
finesse.clientservices.ClientServices.init(finesse.gadget.Config);
user = new finesse.restservices.User({
id : finConfig.id,
onLoad : handleUserLoad,
onChange : handleUserChange
});
containerServices = finesse.containerservices.ContainerServices.init();
clientLogs.log("Adding Tab Visible Handler...");
containerServices.addHandler(finesse.containerservices.ContainerServices.Topics.ACTIVE_TAB, _handleActiveTab);
finesse.containerservices.ContainerServices.makeActiveTabReq();
_clientLogger.log('>>>>user11', user);
}
};
and also i declared the below variable , Codes are not hitting the error , what is issue ? please please can you help me on this .

var _clientLogger = finesse.cslogger.ClientLogger;

my gadgets logging not update in the ClientLogs Side , Can you help me Please .

Thanks!
ran

Hi guys,

issue has been resolved , issue was like gadgets hub setting problem and finesse js file not readable

thanks for your support

Hi , anyone expert in finesse logging setup please share your comments ,actually i am trying for logging setup for 3rd party Gadget to finesse Client Logs , i have one XML file , finesse.module.file1.init() function is one , this init() i called in 1st javascript its working , i am able to see Logs in finesse client log , but i am not able to call the 2nd javascript its not executing , if i create another finesse.module.file2 init() in xml also , please let me know how way i have call for 2nd javascript ?????? so can you help me experts , i am facing since long back , i want to fix this with your comments . thanks

dekwan
Cisco Employee
Cisco Employee

Hi,

 

Are you saying that you have two javascript files for the same gadget and the first file you have the logging working, but the second one you can't? Please confirm or clarify.

 

Thanx,

Denise

Hi Denise
Thank for response,
Yes, your understanding is correct.
Please help me Denise
Thanks
Rand

Hi Denise ,

For your information , First js file for I frame development , and after I frame established  inside i frame second js file is executing for Gadget functions, i want to setup  logging for Second JS file 

 

I did below steps :

After declared all function for Client Logs initiating in I frame js its working Fine am able to see the Logs in Client Logs Section .But Same Code i written in Second JS its Not working(Getting Error Gadget in not defined )? How i have to do initiate the Client Logs  for Second JS file .

Please share your comments .