[#BCLog-Logger-PushBackCallback]
= xref:BCLog.adoc[BCLog]::xref:BCLog/Logger.adoc[Logger]::PushBackCallback
:relfileprefix: ../../
:mrdocs:

Connect a slot to the print signal and return the connection

== Synopsis

Declared in `&lt;logging&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f9513a86728)&rsqb;&rsqb;
std::list&lt;std::function&lt;void(std::string const&)&gt;&gt;::iterator
PushBackCallback(std::function&lt;void(std::string const&)&gt; fun);
----

== Return Value

An iterator identifying the registered callback, for later removal&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *fun*
| The callback invoked with each formatted log string&period;
|===


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