mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
bugfix for issue #457: pattern %z (process id) can not be padded/truncated
This commit is contained in:
parent
406084ab3a
commit
2c7cbf0d41
@ -249,7 +249,7 @@ function patternLayout(pattern, tokens, timezoneOffset) {
|
||||
}
|
||||
|
||||
function pid(loggingEvent) {
|
||||
return loggingEvent && loggingEvent.pid ? loggingEvent.pid : process.pid;
|
||||
return loggingEvent && loggingEvent.pid ? loggingEvent.pid.toString() : process.pid.toString();
|
||||
}
|
||||
|
||||
function clusterInfo(loggingEvent, specifier) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user