1) Is the code actually executed?
2) Is there an error message or exception?
3) Are you looking at the correct file? Don't assume that "." is your program's directory...
4) Learn how to use the code tags - the button in the bar above the posting window.
1) Yes the code is executing
2) The is an SQLException , at this point im calling the errorLog method to write the error to the file
3) In the calling program i set the path for the file, i am looking at the correct file.