pub fn parse_to_map(input: &str) -> Result<HashMap<String, String>, LogfmtError>Expand description
Parse a logfmt string into an owned HashMap<String, String>.
Escape sequences inside quoted values (\", \\) are resolved.
ยงExample
use tpt_logfmt_parse::parse_to_map;
let map = parse_to_map(r#"level=error msg="disk full" retries=3"#).unwrap();
assert_eq!(map["level"], "error");
assert_eq!(map["msg"], "disk full");
assert_eq!(map["retries"], "3");