logging into file.