[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Questions about LOG system


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: ææå <Chunqi Li> <yzt356@xxxxxxxxx>
  • Date: Tue, 14 Feb 2012 15:03:26 +0800
  • Delivery-date: Tue, 14 Feb 2012 07:04:18 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi all,
When I'm reading code of Xen and I can't find the exact LOG file written by each log-writing code, so I have some trouble with debugging.

I have found 8 type of LOG managed by xen-4.0 or later, 
#define LOG_EMERG 0
#define LOG_ALERT 1
#define LOG_CRIT 2
#define LOG_ERR 3
#define LOG_WARNING 4
#define LOG_NOTICE 5
#define LOG_INFO 6
#define LOG_DEBUG 

and there are three frequently used macro for logging:
#define DPRINTF(_f, _a...) syslog(LOG_INFO, _f, ##_a)
#define EPRINTF(_f, _a...) syslog(LOG_ERR, "tap-err:%s: " _f, __func__, ##_a)
#define  PERROR(_f, _a...) syslog(LOG_ERR, "tap-err:%s: " _f ": %s", __func__, ##_a, \
 strerror(errno)

Who can tell me which file match these log type above? Thank you.

--
Chunqi Li
Department of Computer Science
School of EECS
Peking University
Beijing, China
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.