node-metawear icon indicating copy to clipboard operation
node-metawear copied to clipboard

Unable to read logs using the built in logging module

Open krishnask6 opened this issue 8 years ago • 1 comments

My first problem is:

  1. I am trying to read the logs for accelerometer using the logging module but it is not able to read them using downloadLog function. I am trying to use a callback function but doesn't go through all the event.emitter listeners.

  2. I am also facing an issue while running the accelerometerLog.js module, it gives me an warning, but not sure if it is relevant to the first issue: (node:11995) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 write listeners added. Use emitter.setMaxListeners() to increase limit.

krishnask6 avatar Jul 14 '17 17:07 krishnask6

Hi,

The logging module is incomplete in the current version, however, a work in progress version have been developped while ago in this branch. Unfortunately, this last version is not in sync with the latest dependencies but might still work.

I suggest you run this example

Regarding the warnings you encounter with the listeners, it is a known issue not impacting the way the library works.

Alan

alanhortz avatar Jul 18 '17 07:07 alanhortz