Log window disappear after starting mosquitto broker

Hi all.
I’m working with mosquitto 2.0.18 installed on Windows 11

To start the mosquitto broker I use a batch file with the following command

@echo off
start /d "<mosquitto_installation_folder_path>" mosquitto -v -c mosquitto.conf

After launching the previous command, mosquitto broker works correctly but does not appear any log window where I can see the mqtt transactions. Can someone tell me why?

Many thanks


You may need to configure the logging in the config file if you have not done so. Try adding

log_dest stdout

I don’t use Windows much these days so I don’t know if simply having the logging present will cause a window to be opened.



Hi Roger,
I tried your suggestion. After the batch file is ran, the mosquitto log window appears but after 2 seconds it disappears.