logging file by Chris Klimas