voodootikigod / node-rolling-spider

A library for controlling a Parrot Rolling Spider drone via BLE.
Other
253 stars 112 forks source link

How to use this.logger instead of console.log #41

Closed shiva02 closed 9 years ago

shiva02 commented 9 years ago

Hello, I try to use the "logger" option in the settings like in a doc constructor in drone.js file: /**

But I can not. I try : var mydrone = new RollingSpider({uuid : "RS_R112233"}, logger); or var mydrone = new RollingSpider({uuid : "RS_R112233", logger = true});

Do you have a solution maybe? Best regard

voodootikigod commented 9 years ago

Here is an example:

var mydrone = new RollingSpider({uuid: 'RS_R112233', logger: console.log});
shiva02 commented 9 years ago

Waoou excuse me, I had read "If omitted then uses console#log", I thought not having to put something in parameter.. Thanks you

voodootikigod commented 9 years ago

Agh will fix the docs! Thanks!

On Monday, June 8, 2015, shiva02 notifications@github.com wrote:

Waoou excuse me, I had read "If omitted then uses console#log", I thought not having to put something in parameter.. Thanks you

— Reply to this email directly or view it on GitHub https://github.com/voodootikigod/node-rolling-spider/issues/41#issuecomment-109987872 .

Chris Williams

@voodootikigod http://twitter.com/voodootikigod | GitHub http://github.com/voodootikigod

The things I make that you should check out: SaferAging http://www.saferaging.com/ | JSConf http://jsconf.com/ | RobotsConf http://robotsconf.com/ | RobotsWeekly http://robotsweekly.com/

Help me end the negativity on the internet, share this http://jsconf.eu/2011/an_end_to_negativity.html.