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.
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.