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]

Schema for event logging - log.basic


  • Subject: Schema for event logging - log.basic
  • From: John B
  • Date: Thu, 01 Apr 2004 06:50:00 +0000

Hi all,

We have put together a draft schema - log.basic - to allow devices to log
information to a central monitoring application.

<a href="http://www.xplproject.org.uk/modules.php?op=modload&name=Sections&file=index&req=viewarticle&artid=37&page=1";>http://www.xplproject.org.uk/modules.php?op=modload&amp;name=Sections&amp;file=index&amp;req\
=viewarticle&amp;artid=37&amp;page=1</a>

Full text is also pasted below.

Any comments/suggestions are welcome.

Regards,

John

----------------------------------------

Schema Proposal
---------------

Class = LOG
Type = BASIC

NOTE: This schema is currently under development and has not been
officially
accepted by the xPL project.
Discussion of this schema is welcomed in the xPL discussion group.


This schema provides the ability for a device to transmit information
relating
to it's operation.

xpl-cmnd Structure
------------------
Not applicable.


xpl-trig Structure
------------------
log.basic
{
type=inf  wrn  err
text=<text to be logged>
[code=<event-specific code>]
}

XPL-STAT Structure
------------------
Not applicable.


Schema Specific Notes
---------------------

This schema should be used when a device wishes to transmit information
relating
to it's operation.
Messages using the log.basic schema can be monitored centrally and
optionally
logged
to a database to provide a complete operational activity log of an entire
xPL
network.

The type element should be used to broadly specify the type of information,
and
can be one of the following values:
inf - The message is for informational purposes only.
wrn - A warning message to indicate possible problems with a device that
may
require the attention of the user.
err - An error has occurred, causing a device to fail or become partially
inoperative.

The text element should be used to specify the information that is being
logged.
Device vendors should take note of the 128-character limit that applies to
any
value within a name/value pair.

The code element can be used to specify a numeric representation of the
event.
Vendors are free to define their own event codes that are specific to their
devices.
A complete listing of all possible event messages (and their associated
event
codes, if implemented)
should be included as part of the documentation that accompanies any
xPL-enabled
device making use of the log.basic schema.

Devices should not generate excessive log.basic messages, particularly of
an
informational variety, as this
could lead to congestion of the xPL network.

Standard Notes
--------------
[<something>] = optional






xPL Main Index | xPL Thread Index | xPL 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.