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

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



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.

[1] http://dmarkey.com/~dmarkey/xen-highlight.tar

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

 


Rackspace

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