[#BloombergLP-ball-LoggerManager-findObserver-06]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/LoggerManager.adoc[LoggerManager]::findObserver
:relfileprefix: ../../../
:mrdocs:

Load into the specified `result` a shared pointer to the observer of (template parameter) `t&lowbar;OBSERVER` type having the specified `observerName` in the registry of this logger manager, and an empty shared pointer if there is no such observer otherwise&period; Return 0 if a non&hyphen;empty shared pointer was loaded, and a non&hyphen;zero value otherwise&period; Note that an empty shared pointer will be loaded if either no observer having `observerName` is in the registry or the observer registered with that name is not of `t&lowbar;OBSERVER` type&period;

== Synopsis

Declared in `&lt;ball&lowbar;loggermanager&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;OBSERVER&gt;
int
findObserver(
    xref:bsl/shared_ptr-0a.adoc[bsl::shared&lowbar;ptr&lt;t&lowbar;OBSERVER const&gt;]* result,
    std::string&lowbar;view const& observerName) const;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
