Page 1 of 1

Where is the notifications log?

Posted: Wednesday 16 October 2024 12:26
by HvdW
I have been searching for the location of a notifications log.
The forum nor the wiki gave the answer.
The domoticz log gives a recent report on a search for 'noti'

Code: Select all

2024-10-16 12:23:00.550 Status: Notification: message 2 We stopped charging on PV power !
2024-10-16 12:23:00.550 Notification sent (browser) => Success
2024-10-16 12:23:00.792 Notification sent (fcm) => Success
A search with

Code: Select all

sudo find ~/domoticz * |sudo grep notification -ir
didn't give me an answer either.

Where can I find the log file for notifications?

Re: Where is the notifications log?

Posted: Wednesday 16 October 2024 12:31
by psubiaco
Hi.
In the /etc/init.d/domoticz script you can define where to put the log, for example

DAEMON_ARGS="$DAEMON_ARGS -log /var/log/domoticz.log"
#DAEMON_ARGS="$DAEMON_ARGS -syslog"
DAEMON_ARGS="$DAEMON_ARGS -loglevel normal,status,error -verbose 127"

Re: Where is the notifications log?

Posted: Wednesday 16 October 2024 15:19
by waltervl
There is no specific notifications log. What you currently see in the log is it. If you want to see all old notifications you have to store the domoticz log on your drive. But be aware it can become a very large file.....

Re: Where is the notifications log?

Posted: Wednesday 16 October 2024 21:28
by HansieNL
To reduce size of the log file you can use logrotate. I use the logrotate file installed with Domoticz in the script folder. You have to copy that file to /etc/logrotate.d folder.