7 Instances

7.1 Overview

The OPC UA LogObject model defines two well-known instances; ServerLog and Logs (see Table 24 and Table 25 and Figure 7). LogObjects may also exist in other locations in the AddressSpace. The ServerLog is a well-known instance that, if implemented, provides all LogRecords for the Server. The Logs object provides a central folder from which all LogObject instances can be found.

Figure 7 – ServerLog & Logs illustration

7.2 ServerLog

The following instance can exist in Servers if they support LogObjects. It is formally defined in Table 24.

Table 24 – ServerLog definition
Attribute Value
BrowseNameServerLog
References NodeClass BrowseName DataType TypeDefinition
Organized by the Server Object defined in OPC 10000-5
HasTypeDefinitionObjectType0:LogObjectType
ConformanceUnits
LogObject ServerLog

The ServerLog is a LogObject that collects diagnostic information for a Server if it is provided. The ServerLog exposes all LogRecords available in the Server (this shall include all LogRecords in all other LogObjects in the Server).

7.3 Logs

This Object provides a folder that when Organize references are followed, will resolve to all LogObjects defined in the Server (i.e. they are either directly or indirectly referenced from this folder as part of the tree). This folder shall only contain references to instances of LogObjectType (or subtypes of LogObjectType) and references to instances of FolderType (or subtypes of FolderType).

The Logs Object is the target of an Organizes reference from the Resources Object defined in OPC 10000-22.

Its representation in the AddressSpace is formally defined in Table 25.

Table 25 – Logs Object Definition
Attribute Value
BrowseNameLogs
References NodeClass BrowseName DataType TypeDefinition
Organized by the Resources Object defined in OPC 10000-22
HasTypeDefinitionObjectType0:FolderType
ConformanceUnits
LogObject Logs