Add log_all_keys() functionality, convert logs to CSV format