Where is the log file on windows?

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
User avatar
waltervl
Posts: 5913
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Where is the log file on windows?

Post 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)
Last edited by waltervl on Thursday 04 February 2021 17:09, edited 1 time in total.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Where is the log file on windows?

Post 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
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
User avatar
waltervl
Posts: 5913
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Where is the log file on windows?

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
waltervl
Posts: 5913
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Where is the log file on windows?

Post 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?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
plugge

Re: Where is the log file on windows?

Post 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?
plugge

Re: Where is the log file on windows?

Post by plugge »

plugge wrote: Friday 05 February 2021 5:32 Anything I missed?
Oops... forgot to name the log file.. :oops:
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest