Mosquitto (on Windows Server) not logging

Unable to get mosquitto to log. This is on a windows server.

Installed Mosquitto.
Started from command prompt: .\mosquitto.exe
mosquitto.conf has logging set:

log_dest file mosquitto.log (have tried multiple versions)
log_type debug
connection_messages true
log_timestamp true
log_timestamp_format %Y-%m-%dT%H:%M:%S

Thanks for the help


If you start with just .\mosquitto.exe then it won’t load a config file. You should use .\mosquitto.exe -c mosquitto.conf. Even better, use mosquitto as a windows service and it will load the config for you from C:\Program Files\mosquitto\mosquitto.conf.

I hope that helps.


1 Like