[#BloombergLP-ball-FileObserver2-publish-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/FileObserver2.adoc[FileObserver2]::publish :relfileprefix: ../../../ :mrdocs: Publish the specified log `record` with the given `context`. == Synopsis Declared in `<ball_fileobserver2.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void publish( xref:BloombergLP/ball/Record.adoc[Record] const& record, xref:BloombergLP/ball/Context.adoc[Context] const& context) override; ---- == Description Process the specified log `record` having the specified publishing `context` by writing `record` and `context` to the current log file if file logging is enabled for this file observer. The method has no effect if file logging is not enabled, in which case `record` is dropped. DEPRECATED: Do not use. == Parameters [cols="1,4"] |=== | Name| Description | *record* | log record to publish | *context* | publication context for `record` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#