log4rs icon indicating copy to clipboard operation
log4rs copied to clipboard

Add support for global MDC argument.

Open gaoqiangz opened this issue 3 years ago • 3 comments

Global value for all threads output. Pattern argument: XG, gmdc

  • {XG(node_id)} - node-win-554488715635
  • {XG(nonexistent_key)(no mapping)} - no mapping

gaoqiangz avatar Jun 23 '22 03:06 gaoqiangz

@gaoqiangz Looks good, would you mind merging upstream first that way we're not pulling your git repo directly?

estk avatar Sep 01 '22 21:09 estk

Please look again. But there's another PR that doesn't know when it will be merged: rust-log-mdc: Add global context support

gaoqiangz avatar Sep 02 '22 03:09 gaoqiangz

@sfackler any chance you can help us out?

estk avatar Sep 02 '22 03:09 estk

Looks like Steven was able to respond to the pr in rust-log-mdc. I'm not comfortable sidestepping that process and will therefore be closing this for now.

estk avatar Nov 17 '22 19:11 estk