add a file handler to logging