Frank van der Linden | e-office 19 June 2013 09:42:51
Last week I was at a customer, to investigate some problems with the DOTS tasklet.
This DOTS tasklet has 2 methods, one to push data from a Notes Database to MS SQL and one to check in MS SQL if there are some specific changes to the corresponding record. If so, the changes are pulled back into the Notes Databse and update the notes document.
Inside the DOTS tasklet I had build in Java Logging, who can turned on by a specify a notes.ini parameter.
All these logging will shown in the Java console of IBM Domino server. So far so good.
At the customer I was not able to start the Java Console. After consulting a co-worker, no result.
After some digging I found a very easy workaround
In my DOTS tasklet I use the build in java.util.logging.Logger functionality. I found out, you can also specify your own log file by adding a FileHandler to the Logger Object
How does this look in code
In my Utility class I have a Logger instance, with the getter and setter.
On initialize of my main Java in the DOTS tasklet, I added a few lines of code to specify my own log file.
Every time DOTS is loaded on the server, there is a new log file created.
And it solved my problem to see the logging from my DOTS tasklets and the the problem was found and fixed.