PDLogConfig serializes log related config in toml/json.