log4js-node/log4js-node

Expose worker id as a layout pattern specifier

Open

#740 opened on Jun 26, 2018

View on GitHub
 (1 comment) (0 reactions) (0 assignees)JavaScript (787 forks)batch import
good first issuehelp wanted

Repository metrics

Stars
 (5,721 stars)
PR merge metrics
 (Avg merge 423d 21h) (5 merged PRs in 30d)

Description

While the pid is available (via %z) it would be good to also make the worker id available when the cluster module is in use. I guess it should evaluate to 0 if the process is not a worker

Contributor guide