Luup Loglevels

From MiOS
(Difference between revisions)
Jump to: navigation, search
m
 
Line 23: Line 23:
 
Here's a full list of the log types that Vera supports:
 
Here's a full list of the log types that Vera supports:
  
  LV_CRITICAL   1
+
LV_CRITICAL         1
  LV_WARNING   2
+
LV_WARNING         2
  LV_STARTSTOP 3
+
  LV_STARTSTOP        3
  LV_JOB     4
+
LV_JOB             4
  LV_HA     5
+
LV_HA               5
  LV_VARIABLE   6
+
LV_VARIABLE         6
  LV_EVENT   7
+
LV_EVENT           7
  LV_ACTION   8
+
LV_ACTION           8
  LV_ENUMERATION 9
+
  LV_ENUMERATION      9
  LV_STATUS   10
+
LV_STATUS           10
  LV_CHILD_DEVICES 11
+
LV_CHILD_DEVICES   11
  LV_LOCKING   20
+
LV_DATA_REQUEST    12
  LV_IR   28
+
 
  LV_ALARM   31
+
LV_LOCKING         20
  LV_SOCKET   32
+
LV_IR               28
  LV_DEBUG   35
+
LV_ALARM           31
  LV_PROFILER   37
+
LV_SOCKET           32
  LV_PROCESSUTILS 38
+
LV_DEBUG           35
 +
LV_PROFILER         37
 +
  LV_PROCESSUTILS    38
  
 
  // Z-Wave starts with 4
 
  // Z-Wave starts with 4
  LV_ZWAVE   40
+
LV_ZWAVE           40
  LV_SEND_ZWAVE 41
+
  LV_SEND_ZWAVE      41
  LV_RECEIVE_ZWAVE 42
+
LV_RECEIVE_ZWAVE   42
  
 
  // Lua starts with 5
 
  // Lua starts with 5
  LV_LUA   50
+
LV_LUA             50
  LV_SEND_LUA   51
+
LV_SEND_LUA         51
  LV_RECEIVE_LUA 52
+
  LV_RECEIVE_LUA      52
  
 
  // Insteon starts with 6
 
  // Insteon starts with 6
  LV_INSTEON   60
+
LV_INSTEON         60
  LV_SEND_INSTEON 61
+
  LV_SEND_INSTEON    61
  LV_RECEIVE_INSTEON 62
+
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