Classes directory – Echelon LonBridg Server User Manual

Page 19

Advertising
background image

LonBridge Server User’s Guide

13

<port>

The <port> element specifies the IP port for the LonBridge Server. By
default, the LonBridge Server uses the default IP port (3050).

<logging>

The <logging> element specifies the event logging level for the LonBridge
Server and the LonHome Display Example:

• None – Disables all event logging.
• Error – Enables error logging; includes only error events in the log

file.

• General – Enables general logging; logs general events, such as

device discovery and startup events in the log file. Also enables error

logging.

The LonBridge Server uses this logging level as the default unless
you specify a different level with one of the log-level command-line

switches, or in the LonBridge configuration file.

• Debug – Enables debug logging; logs events tracing the internal

operation of the LonBridge Server. Also enables error and general

logging.


You can use this option when porting or enhancing the LonBridge

Server.

• Verbose – Enables verbose logging; logs detailed events for messages

sent to and received by the LonBridge Server. Also enables debug,

error, and general logging.

You can use this option when porting or enhancing the LonBridge
Server software, especially if you are modifying the network driver

interface.

By default, the LonBridge Server uses general logging. However, if you start
the LonBridge Server from the command line and specify any of the event

logging switches (/D, /E, /G, /N, or /V for Windows, -d, -e, -g, -n, or -v for

Linux), the LonBridge Server uses the specified event logging level,
regardless of the event logging level specified in the configuration file.
The event log is named LonBridge.log. This file is created in the Windows

common application data directory or the Linux configuration directory.

In addition to the data within the LonBridge configuration file, the LonBridge

Server also provides two directories of XML files that describe L

ON

W

ORKS

devices that the LonBridge Server can manage: the Classes directory and the
Instances directory. You can find these directories in the same Windows common

application data directory or the Linux user directory as the config.xml file.

Classes Directory

The Classes directory contains XML files that describe the inputs and outputs for

specific classes of devices (such as Echelon Lamp Modules or Appliance Modules).

When the LonBridge Server discovers a new device, the LonBridge Server reads

Advertising