Where is the notifications log?

Subforum for general discussions. Do not dump your questions/problems here, but try to find the subforum where it belongs!

Moderators: leecollings, remb0

Post Reply
HvdW
Posts: 504
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Where is the notifications log?

Post 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?
Bugs bug me.
User avatar
psubiaco
Posts: 194
Joined: Monday 20 August 2018 9:38
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Italy
Contact:

Re: Where is the notifications log?

Post 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"
Paolo
--
I use DomBus modules to charge EV car, get a full alarm system, control heat pump, fire alarm detection, lights and much more. Video
Facebook page - Youtube channel
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Where is the notifications log?

Post 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.....
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
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Where is the notifications log?

Post 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.
Blah blah blah
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests