Page 1 of 1

Where is the log file on windows?

Posted: Thursday 04 February 2021 14:52
by waltervl
According https://www.domoticz.com/wiki/Windows there should be a log file in the log directory. But there is no file coming there. Do I have to switch something else on? Do I need to start Domoticz differently on windows to get the log file on the location I entered during installation?

I want to look back a little longer then what the log file shows at menu Setup - Log (a couple of minutes history)

Re: Where is the log file on windows?

Posted: Thursday 04 February 2021 17:06
by waaren
waltervl wrote: Thursday 04 February 2021 14:52 According https://www.domoticz.com/wiki/Windows there should be a log file in the log directory. But there is no file coming there. Do I have to switch something else on? Do I need to start Domotica differently on windows to get the log file on the location I entered during installation?
If you start domoticz on windows as an app you can define it in the target field of the properties window.

something like
C:\Users\Public\Domoticz\domoticz.exe -www 8080 -sslwww 443 -log C:\Users\Public\Domoticz\domoticz.log -loglevel normal,status,error

Re: Where is the log file on windows?

Posted: Thursday 04 February 2021 20:36
by waltervl
Found it:
When running as a service you need to change regkey HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Domoticz\Parameters
Add value AppParameters with -log "<Path-to-logfile>"

So it seems that the installation tool for windows is not working on this logging parameter.

Re: Where is the log file on windows?

Posted: Thursday 04 February 2021 21:18
by waltervl
I modified the Wiki so users can correct it directly after installation.
Someone can look into this to get it fixed by the installation script?

Re: Where is the log file on windows?

Posted: Friday 05 February 2021 5:32
by plugge
waltervl wrote: Thursday 04 February 2021 20:36 Found it:
When running as a service you need to change regkey HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Domoticz\Parameters
Add value AppParameters with -log "<Path-to-logfile>"
Hm, no log file appears in my case (running as a service) after adding the -log parameter.
Anything I missed?

Re: Where is the log file on windows?

Posted: Friday 05 February 2021 6:49
by plugge
plugge wrote: Friday 05 February 2021 5:32 Anything I missed?
Oops... forgot to name the log file.. :oops: