[log format] lay some foundation for making log formats configurable