Longer log

Subforum for general discussions. Do not dump your questions/problems here, but try to find the subforum where it belongs!
Post Reply
cincuranet
Posts: 20
Joined: Sunday 01 October 2017 17:42
Target OS: Raspberry Pi
Domoticz version:
Contact:

Longer log

Post by cincuranet » Monday 11 June 2018 7:01

Is there some setting somewhere to have the Domoticz Log Image store more/older lines (in All tab)?

User avatar
Egregius
Posts: 2671
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: Beta
Location: Beitem, BE
Contact:

Re: Longer log

Post by Egregius » Monday 11 June 2018 7:41

use tail -f in a shell and you'll see all the lines.
Or open the logfile in a text editor.

SweetPants
Posts: 2087
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V4.9701
Location: The Netherlands
Contact:

Re: Longer log

Post by SweetPants » Monday 11 June 2018 7:54

Egregius wrote:
Monday 11 June 2018 7:41
use tail -f in a shell and you'll see all the lines.
Or open the logfile in a text editor.
And use log rotation with compression and you can save days or more logging.
Ubuntu 16.04.3 LTS, Intel NUC, MySensors 2.3.0-alpha, Pro Mini 3.3/8M RFM69(HW), ESP8266 (SDK2.2.0), Sonoff, RFLink, RFXcom, MQTT, NodeRed, Domoticz Beta (source)

cincuranet
Posts: 20
Joined: Sunday 01 October 2017 17:42
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Longer log

Post by cincuranet » Monday 11 June 2018 8:07

So nothing to show more lines directly in Domoticz's UI, right?

User avatar
Egregius
Posts: 2671
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: Beta
Location: Beitem, BE
Contact:

Re: Longer log

Post by Egregius » Monday 11 June 2018 17:34

Probably yes, but then you need to dig into the Domoticz code.
After that make the change after each update or place a pull request at github.

SweetPants
Posts: 2087
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V4.9701
Location: The Netherlands
Contact:

Re: Longer log

Post by SweetPants » Monday 11 June 2018 22:26

Egregius wrote:
Monday 11 June 2018 17:34
Probably yes, but then you need to dig into the Domoticz code.
After that make the change after each update or place a pull request at github.
Or request a programmable log length variable in the settings?
Ubuntu 16.04.3 LTS, Intel NUC, MySensors 2.3.0-alpha, Pro Mini 3.3/8M RFM69(HW), ESP8266 (SDK2.2.0), Sonoff, RFLink, RFXcom, MQTT, NodeRed, Domoticz Beta (source)

User avatar
Egregius
Posts: 2671
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: Beta
Location: Beitem, BE
Contact:

Re: Longer log

Post by Egregius » Monday 11 June 2018 22:48

It's open source, you can contribute.
Personally I don't see a point for that. If you want to see the full history of the log you can easily open it in a text editor.
Or use a php script like I do :P

SweetPants
Posts: 2087
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V4.9701
Location: The Netherlands
Contact:

Re: Longer log

Post by SweetPants » Tuesday 12 June 2018 13:34

Egregius wrote:
Monday 11 June 2018 22:48
Personally I don't see a point for that. If you want to see the full history of the log you can easily open it in a text editor.
I agree, I have logrotate enabled and save the last 7 days of domoticz log. 99.99% of the time this is more then enough, and easy to read in an editor.
Ubuntu 16.04.3 LTS, Intel NUC, MySensors 2.3.0-alpha, Pro Mini 3.3/8M RFM69(HW), ESP8266 (SDK2.2.0), Sonoff, RFLink, RFXcom, MQTT, NodeRed, Domoticz Beta (source)

User avatar
waaren
Posts: 613
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Longer log

Post by waaren » Tuesday 12 June 2018 16:50

SweetPants wrote:
Tuesday 12 June 2018 13:34
Egregius wrote:
Monday 11 June 2018 22:48
Personally I don't see a point for that. If you want to see the full history of the log you can easily open it in a text editor.
I agree, I have logrotate enabled and save the last 7 days of domoticz log. 99.99% of the time this is more then enough, and easy to read in an editor.
I also agree that this is probably valid for 80%-90% of the people visiting this forum but I doubt if that is also true for the majority of users who will only look at the log when asked to do so by their smart nephew or niece.
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave , dzVents 2.4.n, Amazon echo

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests