Hi,
I am trying to use logback as the logging framework for my flow services. I have created a JAVA service for this.
But I am unable to see the log file created by the service.
IDataCursor pipelineCursor = pipeline.getCursor();
String logbackXML = IDataUtil.getString( pipelineCursor, "logbackXML" );
String logfileName = IDataUtil.getString( pipelineCursor, "logFile" );
System.setProperty("logback.configurationFile", logbackXML);
System.setProperty("logfilePath", logfileName);
Logger log = LoggerFactory.getLogger("ROOT");
log.info("------------into the info logger--------------");
Same code snippet is working fine when I called from a stand alone Java class, but the same not generating the log file when called from JAVA service. And no errors or exceptions are being generated too.
webMethods version 9.10
Using Package class loader
Any hints or pointers to resolve this is highly appreciated.
#Integration-Server-and-ESB#Flow-and-Java-services#webMethods