axa-group / nlp.js

An NLP library for building bots, with entity extraction, sentiment analysis, automatic language identify, and so more
MIT License
6.28k stars 621 forks source link

Some random console.logs during execution - no option to switch logging off. #1202

Closed ppedziwiatr closed 2 years ago

ppedziwiatr commented 2 years ago

Describe the bug The library seems to console.log during the execution - with no option to switch off the logs completely.

To Reproduce

  1. Run the example https://github.com/axa-group/nlp.js#example-of-use
  2. A set of logs is being produced (without loggin level, time, etc - looks like console.log) - see 'screenshots'

Expected behavior The library should not log anything to console by default. There should be an option to set the global logging level to sth like 'none'.

Screenshots

image

Desktop (please complete the following information):

Additional context The logger docs (https://github.com/axa-group/nlp.js/blob/master/docs/v4/logger.md) do not contain information about how to switch off the logging.

jesus-seijas-sp commented 2 years ago

https://github.com/axa-group/nlp.js#log-training-progress

...
const manager = new NlpManager({ languages: ['en'], forceNER: true, nlu: { log: false }});
...
ppedziwiatr commented 2 years ago

Thanks! Didn't spot this in the docs, my fault :-)

Though I believe it should be switched-off by default.