Page 1 of 1
Dynamic LOG
Posted: Friday 15 May 2020 12:31
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
Re: Dynamic LOG
Posted: Friday 15 May 2020 17:07
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