moscajs / mosca

MQTT broker as a module
mosca.io
3.2k stars 513 forks source link

Logging not working #739

Open jcald1 opened 6 years ago

jcald1 commented 6 years ago

I'm using the following options, but I don't see anything being logged.

var moscaConfig = { "port": 1883, "backend": { "type": "mongo",
"url": "mongodb://10.219.37.253:27017/mqtt?auto_reconnect", "pubsubCollection": "inertia", "mongo": {} }, "persistence": { "factory": "mosca.persistence.Mongo", "url": "mongodb://10.219.37.253:27017/mqtt" }

let server = new mosca.Server(moscaSettings)

grath10 commented 6 years ago

From the above configuration, no logging is used like console.log(...), so it may not be weird if you don't see anything logged.

jcald1 commented 6 years ago

Sorry, I left of the configuration in question. This is how I configured logging:

... logger: { name: 'MoscaServer', level: 'debug' }, ...