setting filename and format for logger