-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure '(node)' prefix for stdout logging #3789
Comments
PID would be useful too. Think clustered applications. |
@silverwind @bnoordhuis I will handle this 😄 |
@JungMinu thanks! I don't see PID as a requirement, but we could do |
@silverwind Thanks 😃 |
Let's wait for others to chime in on the PID topic, I feel it's kind of unnecessary. Maybe only include it when in a cluster child? |
@silverwind Yes, 👍 |
@Fishrock123 Whaddya reckon? |
Might want to always include it for consistency with |
Maybe |
Think of it like this: is there ever a time when the PID is distracting or harmful? If not, then include it - because there will be times when it's invaluable. |
Absolutely, the PID can be vital. In terms of format, (node) [pid] is Ben Noordhuis [email protected] schrieb am Fr., 13. Nov. 2015,
|
I will submit a PR for this issue ASAP, Thanks 😄 |
a PR for this issue:#3833 |
Resolved in 94b9948 |
To discern messages logged by node vs. messages logged by the application, we agreed to prefix messages printed to stdout with
(node)
like here or here.There are however cases in the code base where this prefix is missing like here which gets logged here. I'm sure there are more cases in
src
, possibly even some inlib
. One could search forconsole
or theprintf
variants to identify these cases.The text was updated successfully, but these errors were encountered: