Add semantics to logger::Records
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 21 Nov 2023 16:47:12 +0000 (10:47 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 1 Dec 2023 17:30:19 +0000 (11:30 -0600)
commita42aeb5667106ad921386c8ff9279aafe39da341
tree7dca72257831358498c1b44f23f9f3a0ebb4fa4f
parent0cba31fd38615c8608960f87bdd9637b712904a1
Add semantics to logger::Records

Include optional peer and channel ids to logger::Record. This will be
used by wrappers around Logger in order to provide more context (e.g.,
the peer that sent a message, the channel an operation is pertaining to,
etc.). Implementations of Logger can include this as metadata to aid in
searching logs.
lightning/src/util/logger.rs
lightning/src/util/macro_logger.rs