gruntjs / grunt-contrib-requirejs

Optimize RequireJS projects using r.js.
http://gruntjs.com/
MIT License
504 stars 105 forks source link

How can I reduce the amount of logging ? #50

Closed phtrivier closed 10 years ago

phtrivier commented 10 years ago

I have a large project to optimize, and using the grunt task outputs a lot of messages. Is there a way to make it more quiet ?

sindresorhus commented 10 years ago

Can you post the output and let us know what of it you find moot?

phtrivier commented 10 years ago

Well, basically everything in my case ;) I meant the lines like :

Saturate commented 10 years ago

Have you tried the logLevel setting?

//Sets the logging level. It is a number. If you want "silent" running,
//set logLevel to 4. From the logger.js file:
//TRACE: 0,
//INFO: 1,
//WARN: 2,
//ERROR: 3,
//SILENT: 4
//Default is 0.
logLevel: 1,
jamesplease commented 10 years ago

@phtrivier, @Saturate is right, the logLevel option can do just what you're looking to do. In your case, you'd want logLevel: 4.