• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Fixed] usage of log-level
I have a problem with the usage of datetime and want to do some analyzing. My question is how to enable logging?
settings.json contains next entries:
"log-level": 4,
"log-file": "/var/log/pilight.log",

According to the wiki it is the 'default log level of the daemon'.
What is the meaning of these levels?
I have set the level to 1 and 5 and the only output to /var/log/pilight.log is version info at start up of the daemon.
For analyzing purposes you can better use the debug options:
pilight-daemon -D
I did and observed a problem in retrieving the timezone.

However to give support to users who are less familiar with daemons, logging is more convenient. Doesn't work logging at all?
We still could describe the meaning of the levels on wiki. I am willing to do so if I knew the meaning of the 5 levels.
The same as here: https://en.wikipedia.org/wiki/Syslog#Severity_levels
However, pilight loglevel 5 = severity code 7

Can you post your datetime bug in the datetime topic.

Possibly Related Threads...
Thread Author Replies Views Last Post
  [Fixed] Segmentation fault when using Socket API wrong tomk 2 317 08-19-2019, 07:09 PM
Last Post: curlymo
  [Fixed] High CPU usage when pilight usb nano disconnects DieterK 1 341 08-13-2019, 05:43 PM
Last Post: curlymo
  Increased CPU usage with version 8.1.5 wimThoelke 13 1,062 08-07-2019, 08:38 PM
Last Post: curlymo
  High cpu usage Dergo 1 495 02-23-2019, 04:31 PM
Last Post: curlymo
  High cpu usage in 433gpio thread after rpi-update michbeck100 42 21,024 04-23-2015, 08:37 PM
Last Post: thomas.cristo
  webgui/ssh very slow .. high cpu usage gneandr 1 2,569 10-01-2014, 06:43 PM
Last Post: creamers
  [Fixed] GPIO at second (clientized) node isn't triggered easy12 12 8,529 04-28-2014, 02:13 PM
Last Post: curlymo

Forum Jump:

Browsing: 1 Guest(s)