thecointech / thecoin

Mono-repo for TheCoin project
https://thecoin.io
GNU Affero General Public License v3.0
3 stars 1 forks source link

Implement logging scopes #548

Open FrozenKiwi opened 2 months ago

FrozenKiwi commented 2 months ago

valuable for automatically grouping log messages for an action. Implementable with child loggers

It would be great to have

{
  using logScope = new LogScope({ intialId: "xxx", address: "yyy" })
  // All messages from here automatically have those parameters added until scope exit.
}

depends on #546 - https://www.totaltypescript.com/typescript-5-2-new-keyword-using