Added Flush function to Logger.