Hi
I am working on building a java class on CVP studio which should have separate log file using log4j I have complied the code and tested without CVP audium library and it is generating the logs. However when I calling class using Action Element it not generating any logs. Not sure where things are missing. Can any one help me on this?
Thanks and Regards
Anil Kumar.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dear Anil,
Could you try to add below code for Log4j initiation in application start class [StartApplicationInterface]
static { | |||
try { | |||
URL classLoadingPath = OnCCBStart.class.getClassLoader().getResource("log4j.xml"); | |||
DOMConfigurator.configure(classLoadingPath); | |||
} catch (Exception e) { | |||
// ignore | |||
} | |||
} | |||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comments
0 comments
Please sign in to leave a comment.