Print records into separate file for effcient log parsing.