[#BloombergLP-ball-FileObserver-publish-04] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/FileObserver.adoc[FileObserver]::publish :relfileprefix: ../../../ :mrdocs: Publish the specified log `record` with the given `context`. == Synopsis Declared in `<ball_fileobserver.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void publish( xref:bsl/shared_ptr-0a.adoc[bsl::shared_ptr<Record const>] const& record, xref:BloombergLP/ball/Context.adoc[Context] const& context) override; ---- == Description Process the record referenced by the specified `record` shared pointer having the specified publishing `context` by writing the record and `context` to the current log file if file logging is enabled for this file observer, and to `stdout` if the severity of `record` is at least as severe as the value returned by `stdoutThreshold`. == Parameters [cols="1,4"] |=== | Name| Description | *record* | log record to publish | *context* | publication context for `record` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#