Luup Loglevels

From MiOS
(Difference between revisions)
Jump to: navigation, search
m (Category:Development)
(Clarify the logging levels a little.)
Line 1: Line 1:
 
[[Category:Development]]
 
[[Category:Development]]
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
+
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.   
  
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
+
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>
  
 +
  #LogLevels = 1,2,3,4,5,6,7,8,9,50,40
 +
 +
You can use <tt>grep</tt> 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_CRITICAL  1

Revision as of 02:50, 19 December 2010

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_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
Personal tools