The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: Re Debug messages


  • Subject: Re: Re Debug messages
  • From: Stuart Booth <lists@xxxxxxxxxxxxxxxx>
  • Date: Thu, 17 Jun 2004 21:41:04 +0100
  • References: <1068165500.4220.52.camel@ltsp> <012e01c3a79c$d89ab460$2b01a8c0@Lightning>

Mention of debug/error xAP messages came up elsewhere. I promised to
find the thread and post the schema I've been using.

Here it is ... look at the date this first came up. Wow, time has
moved ever onwards.

On Mon, 10 Nov 2003 15:10:58 -0000, "Kevin Hawkins"
<lists@xxxxxxx> wrote:

>I while back I was thinking that we should have a xAP based error
>notification using xAP messages - a sort of schema for sending out
>diagnostic / debugging /error messages such that a central application
could
>log or monitor them. Maybe an opportunity for a central application to
>create logging for components maintained in one file (divided into
sections
>)from many sources.
>
>Perhaps two schemas...
>
>Class=xAP.Error
>Class=xAP.Debug
>
>And within each perhaps three levels... possibly the block names should
be
>identical though with just the class names different.
>
>Error.info
>Error.warning
>Error.critical   Fatal ??
>
>Debug.info
>Debug.warning
>Debug.critical
>
>Or alternatively put the severity into the block
>
>xAP.error
>{
>severity=critical
>......
>
>All info can be provided within the block with perhaps a description
and
>details on your specific logfile location
>
>}
>debug.warning
>{
>description=Bad UID encountered
>detail=A UID of FF212300 with a source address of
>acme.lightcontroller.lounge:centrelight was received
>logfile=errorlog.txt
>path=c:\xAP\MyApp\logs
>}
>
>	Any thoughts ??  Gives a way to see real time problems and also to
>manage the many different log locations that people will be using..

Here's the schema with some words shamelessly stolen from a post of
Patrick's. I've combined several postings in this thread together.
I'll add this to the xAP site.


xAP Error/Debug Message Schema v1.0

Class = xAP.Debug

Debug
{
Severity={info, warning, critical, fatal}
-- mandatory
Description={summary}
-- mandatory
Category={hierarchical error category}
-- mandatory

Detail={longer detail message}
-- optional
Logfile=
-- optional
}

Class = xAP.Error

Distinguishes between technical errors (bugs) and application errors
(stuff that didn't work out right, or couldn't be completed). For
example, a technical error might be the result of a null pointer being
detected somewhere where it wasn't expected. An application error
might result from failure to validate a particular message targeted at
a device, or, say, failure of a local lookup for a scanned barcode or
similar.

Error
{
Severity={info, warning, critical, fatal}
-- mandatory
Description={summary}
-- mandatory
Category={hierarchical error category}
-- mandatory

Detail={longer detail message}
-- optional
Logfile=
-- optional
}

Error.Application
{
severity={info, warning, critical, fatal}
-- mandatory
description={summary}
-- mandatory
category={hierarchical error category}
-- mandatory

detail={longer detail message}
-- optional
logfile=
-- optional
}

S
--
Stuart Booth <stuart@xxxxxxx>
xAPFramework.NET - a xAP software development framework for .NET

http://www.xapautomation.org/ 
     http://www.xapframework.net/



xAP_Development Main Index | xAP_Development Thread Index | xAP_Development Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.