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

Connects a user log sink of type `T` to the kernel logging system&period;

== Synopsis

Declared in `&lt;kernel&sol;bitcoinkernel&lowbar;wrapper&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;xref:btck/Log.adoc[Log] T&gt;
class Logger;
----

== Description

Owns the `btck&lowbar;LoggingConnection` and routes kernel log lines to the sink&apos;s `LogMessage` method for the connection&apos;s lifetime&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:btck/Logger/2constructor.adoc[`Logger`]         [.small]#[constructor]#
| Registers `log` as the destination for kernel log messages&period;
|===



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