# Mosquitto (on Windows Server) not logging

**URL:** <https://forum.cedalo.com/t/mosquitto-on-windows-server-not-logging/591>\
**Category:** Broker management and monitoring\
**Created:** [August 2, 2022, 9:15pm UTC](https://forum.cedalo.com/t/mosquitto-on-windows-server-not-logging/591 "2022-08-02T21:15:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![o2zen](https://avatars.discourse-cdn.com/v4/letter/o/c0e974/32.png) [@o2zen](https://forum.cedalo.com/u/o2zen)\
**Post date:** [August 2, 2022, 9:15pm UTC](https://forum.cedalo.com/t/mosquitto-on-windows-server-not-logging/591/1 "2022-08-02T21:15:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![roger.light](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@roger.light](https://forum.cedalo.com/u/roger.light)\
**Post date:** [August 3, 2022, 5:32pm UTC](https://forum.cedalo.com/t/mosquitto-on-windows-server-not-logging/591/2 "2022-08-03T17:32:42Z")

</div>

Hi,

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.

Roger
