Converted to using FileManager (based on the FileManager class created by @Dragonphase)
fixed non-static logger