Luup Loglevels

From MiOS
(Difference between revisions)
Jump to: navigation, search
(New page: By default only log levels 1-10 will make it to /var/log/cmh/LuaUPnP.log. The others are discarded. To add more log levels edit the file /etc/cmh/cmh.conf. To see all log entries check ...)
 
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
By default only log levels 1-10 will make it to /var/log/cmh/LuaUPnP.log.  The others are discarded.  To add more log levels edit the file /etc/cmh/cmh.conf.  To see all log entries check the verbose option on Advanced/Logs, or put a # in front of the LogLevels= line in /etc/cmh/cmh.conf
+
[[Category:Development]]
 +
[[Category:How To]]
  
You can use grep to see only certain log entries.  For example, to watch the log and see only critical errors and Z-Wave serial API traffic, use: tail -f /var/log/cmh/LuaUPnP.log | grep '^01\|^41\|^42' or to view the list of all devices in the system use: grep '^09' /var/log/cmh/LuaUPnP.log
+
'''Using Loglevels'''
  
 +
Vera records different types of log entries, in it's log files, according to logging levels.  By default only log levels 1-10 will make it to <tt>/var/log/cmh/LuaUPnP.log</tt> and all other types of messages are discarded. 
  
LV_CRITICAL 1
+
To add more log levels edit the file <tt>/etc/cmh/cmh.conf</tt>.  To see all log entries check the verbose option on Advanced/Logs, or put a comment character (<tt>#</tt>) in front of the <tt>LogLevels=</tt> line in <tt>/etc/cmh/cmh.conf</tt>
LV_WARNING 2
+
LV_STARTSTOP 3
+
LV_JOB 4
+
LV_HA 5
+
LV_VARIABLE 6
+
LV_EVENT 7
+
LV_ACTION 8
+
LV_ENUMERATION 9
+
LV_STATUS 10
+
LV_CHILD_DEVICES 11
+
LV_LOCKING 20
+
LV_IR 28
+
LV_ALARM 31
+
LV_SOCKET 32
+
LV_DEBUG 35
+
LV_PROFILER 37
+
LV_PROCESSUTILS 38
+
  
// Z-Wave starts with 4
+
  #LogLevels = 1,2,3,4,5,6,7,8,9,50,40
LV_ZWAVE 40
+
LV_SEND_ZWAVE 41
+
LV_RECEIVE_ZWAVE 42
+
  
// Lua starts with 5
+
You can use <tt>grep</tt> to see only certain types of log entries.
LV_LUA 50
+
LV_SEND_LUA 51
+
LV_RECEIVE_LUA 52
+
  
// Insteon starts with 6
+
For example, to watch the log and see only critical errors and Z-Wave serial API traffic, use:
LV_INSTEON 60
+
 
LV_SEND_INSTEON 61
+
  tail -f /var/log/cmh/LuaUPnP.log | grep '^01\|^41\|^42'
LV_RECEIVE_INSTEON 62
+
 
 +
or to view the list of all devices in the system use:
 +
 
 +
  grep '^09' /var/log/cmh/LuaUPnP.log
 +
 
 +
 
 +
Here's a full list of the log types that Vera supports:
 +
 
 +
LV_CRITICAL        1
 +
LV_WARNING          2
 +
LV_STARTSTOP        3
 +
LV_JOB              4
 +
LV_HA              5
 +
LV_VARIABLE        6
 +
LV_EVENT            7
 +
LV_ACTION          8
 +
LV_ENUMERATION      9
 +
LV_STATUS          10
 +
LV_CHILD_DEVICES    11
 +
LV_DATA_REQUEST    12
 +
 
 +
LV_LOCKING          20
 +
LV_IR              28
 +
LV_ALARM            31
 +
LV_SOCKET          32
 +
LV_DEBUG            35
 +
LV_PROFILER        37
 +
LV_PROCESSUTILS    38
 +
 
 +
// Z-Wave starts with 4
 +
LV_ZWAVE            40
 +
LV_SEND_ZWAVE      41
 +
LV_RECEIVE_ZWAVE    42
 +
 
 +
// Lua starts with 5
 +
LV_LUA              50
 +
LV_SEND_LUA        51
 +
LV_RECEIVE_LUA      52
 +
 
 +
// Insteon starts with 6
 +
LV_INSTEON         60
 +
LV_SEND_INSTEON     61
 +
LV_RECEIVE_INSTEON 62
 +
 
 +
// Low level debugging starts with 2+ ZWave/Lua/Insteon
 +
LV_ZWAVE_DEBUG      24
 +
LV_LUA_DEBUG        25
 +
LV_INSTEON_DEBUG    26

Latest revision as of 09:00, 19 June 2012


Using Loglevels

Vera records different types of log entries, in it's log files, according to logging levels. By default only log levels 1-10 will make it to /var/log/cmh/LuaUPnP.log and all other types of messages are discarded.

To add more log levels edit the file /etc/cmh/cmh.conf. To see all log entries check the verbose option on Advanced/Logs, or put a comment character (#) in front of the LogLevels= line in /etc/cmh/cmh.conf

 #LogLevels = 1,2,3,4,5,6,7,8,9,50,40

You can use grep to see only certain types of log entries.

For example, to watch the log and see only critical errors and Z-Wave serial API traffic, use:

 tail -f /var/log/cmh/LuaUPnP.log | grep '^01\|^41\|^42'

or to view the list of all devices in the system use:

 grep '^09' /var/log/cmh/LuaUPnP.log


Here's a full list of the log types that Vera supports:

LV_CRITICAL         1
LV_WARNING          2
LV_STARTSTOP        3
LV_JOB              4
LV_HA               5
LV_VARIABLE         6
LV_EVENT            7
LV_ACTION           8
LV_ENUMERATION      9
LV_STATUS           10
LV_CHILD_DEVICES    11
LV_DATA_REQUEST     12
LV_LOCKING          20
LV_IR               28
LV_ALARM            31
LV_SOCKET           32
LV_DEBUG            35
LV_PROFILER         37
LV_PROCESSUTILS     38
// Z-Wave starts with 4
LV_ZWAVE            40
LV_SEND_ZWAVE       41
LV_RECEIVE_ZWAVE    42
// Lua starts with 5
LV_LUA              50
LV_SEND_LUA         51
LV_RECEIVE_LUA      52
// Insteon starts with 6
LV_INSTEON          60
LV_SEND_INSTEON     61
LV_RECEIVE_INSTEON  62
// Low level debugging starts with 2+ ZWave/Lua/Insteon
LV_ZWAVE_DEBUG      24
LV_LUA_DEBUG        25
LV_INSTEON_DEBUG    26
Personal tools