[#BloombergLP-ball-FileObserver2-setLogFileFunctor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/FileObserver2.adoc[FileObserver2]::setLogFileFunctor :relfileprefix: ../../../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setLogFileFunctor(xref:BloombergLP/ball/FileObserver2/RecordFormatter.adoc[RecordFormatter] const& logFileFunctor); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#