WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] syslog support to xentoollog

To: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] syslog support to xentoollog
From: Gihan Munasinghe <GMunasinghe@xxxxxxxxxxxx>
Date: Thu, 03 Jun 2010 15:31:56 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 03 Jun 2010 07:32:55 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <alpine.DEB.2.00.1006031121020.3401@kaball-desktop>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4C06CF97.8070002@xxxxxxxxxxxx> <alpine.DEB.2.00.1006031121020.3401@kaball-desktop>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.22 (X11/20090625)
Stefano Stabellini wrote:
On Wed, 2 Jun 2010, Gihan Munasinghe wrote:
Guys

Is there any plans to add syslog support in to xentoollog.

Is this something that xentoollog would like to adopt .


That is something we definitely want, patches are welcome :-)

Great I'll do some patching to get syslog working.

looking at the xentool.h, following definitions

#define XTL_STDIOSTREAM_SHOW_PID      01u
#define XTL_STDIOSTREAM_SHOW_DATE     02u
#define XTL_STDIOSTREAM_HIDE_PROGRESS 04u

I would suggest to be as
#define XTL_SHOW_PID      01u
#define XTL_SHOW_DATE     02u
#define XTL_HIDE_PROGRESS 04u
So it will be more generic for any loggers that will be implemented

also is everyone happy with following loglevel mappings between xentoollog_level and syslog

       {XTL_DEBUG,LOG_DEBUG},
       {XTL_VERBOSE,LOG_DEBUG},
       {XTL_DETAIL,LOG_DEBUG},
       {XTL_PROGRESS,LOG_DEBUG},
       {XTL_INFO,LOG_INFO},
       {XTL_NOTICE,LOG_NOTICE},
       {XTL_WARN,LOG_WARNING},
       {XTL_ERROR,LOG_ERR},
       {XTL_CRITICAL,LOG_CRIT}

Thanks
Gihan

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel