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-api

[Xen-API] xensource.log/SMlog source-highlight definitions.

To: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] xensource.log/SMlog source-highlight definitions.
From: David Markey <admin@xxxxxxxxxxx>
Date: Mon, 9 Aug 2010 15:28:07 +0100
Delivery-date: Mon, 09 Aug 2010 07:28:18 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Reply-to: admin@xxxxxxxxxxx
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Hello All.

So I have come up with some simple source-highlight definitions to pretty up xensource.log/SMlog.(see http://dmarkey.com/~dmarkey/syn.png )

How to get started:

Install source-highlight (on Ubuntu/Debian, apt-get install source-highlight)

Copy xen-highlight.tar[1] to your home directory, untar. This will create $HOME/bin/src-hilite-lesspipe.sh and some definition files in $HOME/.source-highlight/*

Then set the following environment variables:

export LESSOPEN="| $HOME/bin/src-hilite-lesspipe.sh %s"
export LESS=" -R "

When you less an SMlog or xensource.log file, the syntax highlighting should be effective.

It tries to point out obvious problems, like exceptions, and commands that failed.

If you have any suggestions on how to improve this, they are welcome.

David.


_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] xensource.log/SMlog source-highlight definitions., David Markey <=