[#BloombergLP-balm-ConfigurationUtil-setFormat] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/ConfigurationUtil.adoc[ConfigurationUtil]::setFormat :relfileprefix: ../../../ :mrdocs: Set the format specification for the metric indicated by the specified `category` and `metricName` to the specified `format`. Optionally specify a metrics `manager` to configure. If `manager` is 0, configure the default metrics manager; if `manager` is 0 and the default metrics manager has not been initialized, this method has no effect. Return 0 on success, or a non‐zero value if `manager` is 0 and the default metrics manager has not been initialized. If a `MetricId` does not exist for `category` and `metricName`, create one and add it to the metric registry of the indicated metrics manager. == Synopsis Declared in `<balm_configurationutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int setFormat( char const* category, char const* metricName, xref:BloombergLP/balm/MetricFormat.adoc[MetricFormat] const& format, xref:BloombergLP/balm/MetricsManager.adoc[MetricsManager]* manager = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#