cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2078
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11

Subject: Re: New Message from Coty Condry in Customer Voice Portal (CVP) - CVP - All
Replied by: Janine Graves on 06-08-2013 01:04:20 PM
Since your java class isn't using the CVP API, can you try putting it into one of the following (then restart VXML Server service) and see if any of these work? 1. VxmlServer/common/lib - or - 2. VxmlServer/lib -or - 3. VxmlServer/Tomcat/common/lib
This document was generated from CDN thread

Created by: Coty Condry on 06-08-2013 12:46:43 PM
I have a custom element in CVP 9 that calls an external class that is in a .jar in my application's java lib folder. That class is using log4j to log, but this file never gets created/logged to when I deploy the app to my CVP VXML server and call into it. Here is the code that gets called from inside the custom element:
1import org.apache.log4j.*;
2
3public class Foo{
4    private static Logger log = Logger.getLogger("Foo");
5}
and here is the log4j.properties file that I put in my CVP application's \java\application\classes\ folder:
1log4j.rootCategory=DEBUG,ERROR
2#file appender for Debug and Info logs
3log4j.appender.ERROR=org.apache.log4j.RollingFileAppender
4log4j.appender.ERROR.File=/test.log
5log4j.appender.ERROR.layout=org.apache.log4j.PatternLayout
6log4j.appender.ERROR.layout.ConversionPattern=%d{DATE}  %-5p %c{1} : %m%n
How should I be logging inside this class? Am I missing a step?
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