Set the record formatting functor used by this observer.
Declared in <ball_cstdioobserver.h>
void
setFormatFunctor(RecordFormatter const& formatter);
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.
| Name | Description |
|---|---|
| formatter | functor that formats a log record for output |