cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
173
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: Scope Future on 26-11-2013 01:28:31 PM
Am looking for suggestions on sending an alert possibly an email whenever the application writes some log into the ErrorLog folder. Can anyone guide me if there is a way to detect that an error occured(error log written by application). I am trying to avoid the option of reading the error log at regular intervals using a java scheduler to detect the error log update and then sending an email alert. Basically I want to send an email as soon as the error message is written into the error log. Thanks in Advance!!!

Subject: RE: Error Log
Replied by: Ryan Hilfers on 26-11-2013 02:32:38 PM
Scope Future:
Am looking for suggestions on sending an alert possibly an email whenever the application writes some log into the ErrorLog folder. Can anyone guide me if there is a way to detect that an error occured(error log written by application). I am trying to avoid the option of reading the error log at regular intervals using a java scheduler to detect the error log update and then sending an email alert. Basically I want to send an email as soon as the error message is written into the error log. Thanks in Advance!!!

I would look into writting a Logger you can then add to the application config (in general settings). The programmer's guide details the logging API fairly well.  The only part you'll have to tinker with is which events to register your logger to listen for.

I'm thinking:
IEventIDs.SYSTEM_ERROR_EVENT_ID 
IEventIDs.JAVA_API_ERROR_EVENT_ID 
IEventIDs.XML_API_ERROR_EVENT_ID  
IEventIDs.VXML_ERROR_EVENT_ID

Are probably the right ones. I'm guessing the Error Logger is at least listening for those.

Check out page 86 in "Programming Guide for Cisco Unified CVP VXML Server and Cisco Unified Call Studio Release 8.0(1)"

Subject: RE: Error Log
Replied by: Ryan Hilfers on 26-11-2013 02:47:13 PM
Scope,

You should also listen for "vxmlSessionTimeout"  but i do not see that defined in the IEventsIDs interface, so you'll have to reference by that string, but it looks like the Error Logger is listening for it.

Let me know if you need an example or anything.  I had a similar requirement and built a Logger class that notifies the operations team on failures.. it works great. I can include details of the event as well in the email, such as the stack trace.  boom.

Subject: Re: New Message from Scope Future in Customer Voice Portal (CVP) - General
Replied by: Janine Graves on 26-11-2013 08:21:51 PM
You could create End of Call java code and examine the ExitStateHistory. If there was an error, then I believe the last or next-to-last exit state will be 'error' Try just printing out all the entries of Exit State History when you generate some error. On 11/26/2013 2:28 PM, Cisco Developer Community Forums wrote: Scope Future has created a new message in the forum "General Discussion - All Versions": -------------------------------------------------------------- Am looking for suggestions on sending an alert possibly an email whenever the application writes some log into the ErrorLog folder. Can anyone guide me if there is a way to detect that an error occured(error log written by application). I am trying to avoid the option of reading the error log at regular intervals using a java scheduler to detect the error log update and then sending an email alert. Basically I want to send an email as soon as the error message is written into the error log. Thanks in Advance!!! -- To respond to this post, please click the following link: http://developer.cisco.com/web/cvp/community/-/message_boards/view_message/21752340 or simply reply to this email. -- Janine Graves

Subject: RE: Error Log
Replied by: Scope Future on 27-11-2013 09:22:05 AM
Ryan Hilfers:
Scope,

You should also listen for "vxmlSessionTimeout"  but i do not see that defined in the IEventsIDs interface, so you'll have to reference by that string, but it looks like the Error Logger is listening for it.

Let me know if you need an example or anything.  I had a similar requirement and built a Logger class that notifies the operations team on failures.. it works great. I can include details of the event as well in the email, such as the stack trace.  boom.

Hi Ryan,

Can you please share the example of the logger you have used in the project.
Thanks in Advance!!!

Subject: RE: Error Log
Replied by: Ryan Hilfers on 27-11-2013 03:20:19 PM
Scope Future:
Ryan Hilfers:
Scope,

You should also listen for "vxmlSessionTimeout"  but i do not see that defined in the IEventsIDs interface, so you'll have to reference by that string, but it looks like the Error Logger is listening for it.

Let me know if you need an example or anything.  I had a similar requirement and built a Logger class that notifies the operations team on failures.. it works great. I can include details of the event as well in the email, such as the stack trace.  boom.

Hi Ryan,

Can you please share the example of the logger you have used in the project.
Thanks in Advance!!!I
I've attached something to get you started. Take a look at the java, test logging to a flat file first and then work in the fancy stuff. Put in VXMLServer\common directory, referencing the class in your project's General settings alongside the other loggers.  Would be happy to help with any specifics.
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links