Improved creation of file log