BloombergLP::ball::ObserverFormatterImp::setFormat

Set the log record format specifications for this object according to the specified format.

Synopsis

Declared in <ball_observerformatterimp.h>

int
setFormat(std::string_view const& format);

Description

Return 0 on success, and a non-zero value otherwise. This method has no effect on format if format is not a valid format specification. If format does not start with a scheme (it has no "://" in it) use the default "text" scheme.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
formatformat configuration string used to create the formatter