You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using info() in serverLog() caused my node app logs to be un-colored.
If I use { stdio : 'inherit' }
Then I lose the console.warn colors as stderr will arrive to stdout. But I will see stdout colors.
To fix this, I used this option to overcome this issue. { stdio : ['pipe', 'inherit', 'pipe'] }
Now I see the colors as per my node app logs and also any warning will come to stderr and colored by serverError()
PS. I had to remove info() from the serverLog() function.
The text was updated successfully, but these errors were encountered:
Using info() in serverLog() caused my node app logs to be un-colored.
If I use
{ stdio : 'inherit' }
Then I lose the console.warn colors as stderr will arrive to stdout. But I will see stdout colors.
To fix this, I used this option to overcome this issue.
{ stdio : ['pipe', 'inherit', 'pipe'] }
Now I see the colors as per my node app logs and also any warning will come to stderr and colored by
serverError()
PS. I had to remove info() from the serverLog() function.
The text was updated successfully, but these errors were encountered: