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: Michael McSharry
  • Date: Wed, 10 Mar 2004 03:38:00 +0000

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<DIV><FONT face="Arial" size="2">I'm not
understanding the context of the logfile in the proposed schema.&nbsp;
Is the purpose to notifiy other XAP app's that a log file exists and it can
be retrieved via a UNC file system reference?&nbsp; If this is the
case, then what is a typical application?</FONT></DIV>
<DIV><FONT face="Arial"
size="2"></FONT>&nbsp;</DIV>
<DIV><FONT face="Arial" size="2">I have an
Writelog XAP executable that implements a schema consisting of a log
message where the log message contains three fields.&nbsp; One a
timestamp, one a type/classification field, and the third a message
body..&nbsp; The Writelog application logs the record along with the
source id from the header to a database.&nbsp; The schema is defined in
the draft Homeseer XAP document.&nbsp; The intention is that a cental
record of all XAP node logs are maintained and can be queried by other XAP
apps that want some type of slice through the
database.</FONT></DIV>
<DIV><FONT face="Arial"
size="2"></FONT>&nbsp;</DIV>
<DIV><FONT face="Arial" size="2">I
generally believe that the log and error schema should be relatively
free-form.&nbsp; The definition of buckets for types of messages
presupposes an eventual use for this information, however this use has not
been defined so there is no good basis for any type of
categorization.&nbsp; That is why in the Writelog application the
"type" field is free-form.&nbsp; This allows any application
to send what it feels has some significance for logging and
debugging.&nbsp; An application that&nbsp;is later developed to
manage errors, debug, or other log information will be developed based upon
the context of the data that is being managed.&nbsp; Future
applications will likely have square pegs and the definition of round holes
for these pegs will result in a constrained
implementation.</FONT></DIV>
<DIV><FONT face="Arial"
size="2"></FONT>&nbsp;</DIV>
<DIV><FONT face="Arial" size="2">For any
given application a convention can be established such that the content of
the "type" field can specify debug at various criticalilty
levels, or that resources are low, or interface power is off, or whatever
is appropriate for that application.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE>
<DIV><B>From:</B> <A title="lists@xxxxxxx"
href="mailto:lists@xxxxxxx";>Stuart
Booth</A> </DIV>
<DIV><B>To:</B> <A
title="xAP_developer@xxxxxxx" href="mailto:xAP_developer@xxxxxxx";>xAP_developer@xxxxxxx</A>
</DIV>
<DIV><B>Sent:</B> Tuesday, March 09, 2004 2:32
PM</DIV>
<DIV><B>Subject:</B> Re: [xAP_developer] Re Debug
messages</DIV>
<DIV></DIV><TT>On Tue, 09 Mar 2004 22:07:54 +0000, Stuart
Booth<<A href="mailto:lists@xxxxxxx";>lists@xxxxxxx</A>>
wrote:>Class = xAP.Debug>>debug>{>severity={info, warning,
critical, fatal}>description={summary}>detail={longer detail
message}>logfile=>path=>}1. Drop path and combine it into a single
entry, logfile? True, thisis a file relative to the source of the message
and won't always beapplicable e.g. to devices without any storage
capabilities. Or itcould use a UNC pathname.2. Added Category, a string
field that can be used to group debugmessages together.3. Perhaps move the
log file items to a separate block as this meansmultiple debug messages can
be transmitted in the one block, but alllogged to the same file? Or maybe
they go to separate files so thatisn't appropriate? Perhaps an overriding
log file block e.g.Debug.Log{File=<path to log file on device>}This
applies to the entir
e message unless the individual itemspecifies a separate entry.Way more
complicated than is perhaps required.S-- Stuart Booth
<stuart@xxxxxxx>xAPFramework.net - a xAP software development
framework for .net<A href="http://www.xapautomation.org/";>http://www.xapautomation.org/</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<A href="http://www.xapframework.net/";>http://www.xapframework.net/</A></TT>




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.