pub fn set_header_pattern(pattern: &str) -> Result<()>
Set the header pattern for log output formatting. The polling thread must be stopped first.