Make write_logs() work with regexes