Thursday, June 23, 2011

Writing to the server log from a java service.

If you are trying to debug a java service, you can write directly to server.log on the Integration Server.

Use this call in your java service like you would use System.err.println()

com.wm.util.JournalLogger.log(3,90,3,"LOG " + message );


It looks like the numbers make the log error code look like this:
[ISP.0090.0003I]

Very handy, just don't forget to take them out!