You could apply the Singleton
pattern for the Logger class (all code would use Logger.getInstance(), and get a reference to the same Logger instance).
This Logger class should be able to handle input from different threads at once, to avoid intermixed output in the file.
Hope this helps.
Regards,
G�nther.
http://www.javacoding.net