Open
Description
Hello!
I am implementing a custom logger that prints a JSON serialized struct. The struct has a field custom_list: Option<Vec<String>>
that should be derived from log::kv::Value
. However I could not figure out how to convert to Vec<String>
from Value
? Is that a missing feature or am I overseeing something here?
MyStruct {
custom_list: Option<Vec<String>>
}
From end users perspective:
info!(custom_list = as_serde!(vec!["a".to_string(), "b".to_string()]); "Test log msg");
Thanks