Alessandro Pezzato
Alessandro Pezzato

Reputation: 8822

Express.js disable console color

When starting an Express webapp from Eclipse, output in console has strange characters:

[90mGET / [32m200 [90m310ms - 162b[0m

I guess they are "color" characters: when running express from a terminal, output is colorful.

How to disable color output from Express?

Upvotes: 6

Views: 2241

Answers (2)

Chirag Jain
Chirag Jain

Reputation: 2418

You can pass your own format instead of dev. refer this: http://www.senchalabs.org/connect/logger.html

Upvotes: 4

robertklep
robertklep

Reputation: 203534

I think the 'tiny' logging format is similar to the (colored) 'dev' format:

app.use(express.logger('tiny'));

Upvotes: 3

Related Questions