Dynamic LOG

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
Allras82
Posts: 20
Joined: Thursday 26 October 2017 19:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Dynamic LOG

Post by Allras82 »

Hi,

An option to setup LOG could be nice.
Extent the amount of lines.
LOG for last 24h instead of fixed amount of lines...

I fully understand that there has to be som limenation but it could be nice if this could be configurable.

BR
Allan
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Dynamic LOG

Post by waaren »

Allras82 wrote: Friday 15 May 2020 12:31 An option to setup LOG could be nice.
LOG for last 24h instead of fixed amount of lines...
If you use the GUI to look at the log you look at lines that are stored in memory. These lines are not in the database or in another OS file. That's why the limitation is as it is.
If you want more lines you should modify the startup settings of domoticz in /etc/init.d

with an editor of choice

Code: Select all

DAEMON_ARGS="$DAEMON_ARGS -log /var/log/domoticz.log" # or any other OS file 
#DAEMON_ARGS="$DAEMON_ARGS -loglevel  normal,status,error, debug" # debug disabled for now 
DAEMON_ARGS="$DAEMON_ARGS -loglevel  normal,status,error" # these loglevels will make it to the logfile
#DAEMON_ARGS="$DAEMON_ARGS -debuglevel normal,hardware,received,webserver,eventsystem,python,thread_id"

Code: Select all

sudo systemctl daemon-reload
sudo service domoticz stop
sudo service domoticz start

You will now see the standard number of lines in the GUI but all lines in /var/log/domoticz/log

you can have a look at the lines using
sudo tail -f /var/log/domoticz.log
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest