Enhance log_format_has() to understand the "'" modifier.