MCPcopy Create free account
hub / github.com/ElementsProject/lightning / with_logging

Method with_logging

plugins/src/lib.rs:336–339  ·  view source on GitHub ↗

Should the plugin automatically register a logging handler? If not you may need to register a logging handler yourself. Be careful not to print raw lines to `stdout` if you do, since that'll interfere with the plugin communication. See the CLN documentation on logging to see what logging events should look like.

(mut self, log: bool)

Source from the content-addressed store, hash-verified

334 /// documentation on logging to see what logging events should
335 /// look like.
336 pub fn with_logging(mut self, log: bool) -> Builder<S, I, O> {
337 self.logging = log;
338 self
339 }
340
341 /// Tells lightningd explicitly to allow custommmessages of the provided
342 /// type

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected