I was examining the sample service call-out that comes with 5.4.1.3 and it outputs log4j debug messages.
When I tried to use the same technique, I could not find where the output is sent to from within Studio,
To make sure that log4j would output, ı used the ERROR level. I also tried to use the
System.out.println()
but could not see that in the console of Eclipse either.
Where do these output go to? Which Jar contains the log4j.xml/properties for config? Can I include my own log4j config?
Hi Nuri,
By default the log4j setup outputs to the standard output at error level. Unfortunately this is the standard output for the eclipse process and can't be seen inside eclipse.
The best approach of logging from service call outs is to change the log4j appender and the logging level. This can be done using the following steps:
log4j.appender.file=org.apache.log4j.FileAppender
log4j.appender.file.File=c:/wrk/corticon.log4j.log
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
log4j.rootLogger=debug, file
When you restart Corticon studio the service call out logs go to the file specified in the configuration.
-Prashant
Nuri, sorry for the delay. We'll get back to you on this shortly.
Jim
Hi Nuri,
By default the log4j setup outputs to the standard output at error level. Unfortunately this is the standard output for the eclipse process and can't be seen inside eclipse.
The best approach of logging from service call outs is to change the log4j appender and the logging level. This can be done using the following steps:
log4j.appender.file=org.apache.log4j.FileAppender
log4j.appender.file.File=c:/wrk/corticon.log4j.log
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
log4j.rootLogger=debug, file
When you restart Corticon studio the service call out logs go to the file specified in the configuration.
-Prashant