Set the formatting functor used when writing records to the log file of this file observer to the specified logFileFunctor. 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. Also, notice 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 (text) format strings to preserve that behavior. Note that this method exists for backwards compatibility and new code is highly encouraged to make use of setFormat with the URI‐scheme‐like tags to create different formatters. (Currently string and JSON output format is supported.)

Synopsis

Declared in <ball_fileobserver2.h>

void
setLogFileFunctor(RecordFormatter const& logFileFunctor);

Created with MrDocs