gimm / gulp-live-server

serve your nodejs/static app live
148 stars 71 forks source link

Colored stdout by my app is not shown #67

Open ahmader opened 7 years ago

ahmader commented 7 years ago

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.