same output, no change after using error. This is on a Mac, I do not thin that changes anything though.
On Friday, December 27, 2013 8:57:46 AM UTC-8, Thomas wrote: > > I don't think `err` is a valid string, try `error` instead > > Thomas Blobaum > https://github.com/tblobaum/ > > > On Fri, Dec 27, 2013 at 10:20 AM, Reza Razavipour > <[email protected]<javascript:> > > wrote: > >> I am prototyping logging for my node.js application and started with >> rconsole package. Not clear how to set the logging levels. I have the >> following code and regardless of what debug level I set, I see the same >> output. >> >> require('rconsole') >> >> >> console.set({ >> facility: 'local0' // default: user >> , title: 'web-01' // default: node -- can also be set with >> `process.title` >> , highestLevel: 'err' // [emerg, alert, crit, err, warning, notice, >> info, debug] >> , stdout: false // default: false >> , stderr: true // default: true >> , syslog: true // default: true >> , syslogHashTags: false // default: false >> , showTime: true // default: true >> , showLine: true // default: true >> , showFile: true // default: true >> , showTags: true // default: true }) >> >> >> console.warn('level is set to err and this is a warn'); >> console.notice('notice'); >> console.error('error'); >> >> console.set({ >> highestLevel: 'notice', >> stderr: false >> }) >> >> console.warn('level is set to notice warn and this is a warn'); >> console.notice('notice'); >> console.error('error'); >> console.set({ >> highestLevel: 'crit', >> stderr: false >> }) >> >> console.warn('level is set to notice crit and this is a warn'); >> console.notice('notice'); >> console.error('error'); >> >> and the output, I always see the same output which is >> >> level is set to err and this is a warn >> notice >> error >> level is set to notice warn and this is a warn >> notice >> error >> level is set to notice crit and this is a warn >> notice >> error >> >> Can someone explain to me what I am doing wrong here? >> >> -- >> -- >> Job Board: http://jobs.nodejs.org/ >> Posting guidelines: >> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >> You received this message because you are subscribed to the Google >> Groups "nodejs" group. >> To post to this group, send email to [email protected]<javascript:> >> To unsubscribe from this group, send email to >> [email protected] <javascript:> >> For more options, visit this group at >> http://groups.google.com/group/nodejs?hl=en?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "nodejs" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
