BloombergLP::ball::CstdioObserver::setFormatFunctor

Set the formatting functor used when writing records to the log of this cstdio observer to the specified formatter functor. Note that a default format ("n%d %p %t %s %f %l %c %m %un") is in effect until this method or setFormat is called (see ball_recordstringformatter). Also note that the observer emits newline characters at the beginning and at the end of a log record by default, so the user needs to add them explicitly to the format string to preserve this behavior. Note that this method is not able to communicate the timezone default settings to the formatter, prefer setFormat.

Synopsis

Declared in <ball_cstdioobserver.h>

void
setFormatFunctor(RecordFormatter const& formatter);