serde: Use log framework