log4js-node / log4js-node/log4js-node

Expose worker id as a layout pattern specifier

Open
#740 1 comment 0 reactions 0 assignees View on GitHub
good first issue help wanted
Dominant language
JavaScript
Stars
5.8k
Forks
752
PR merge metrics
No 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

No contributing guide indexed for this repository

Research direction

Trace the layout-pattern handling and the cluster-module integration, starting from the existing `%z` implementation; the issue names no file or test. Determine how the new specifier should behave for workers and ordinary processes, then add focused coverage showing the worker id or 0.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
observability-sre
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.