General Information

Description

The library "ApplicationLogger" supports the functionalities to establish a logging for the application program.

The library contains the functionality of the application logger, which is published by including the library into a project. The application logger only holds the functionality to store logger messages and to manage a set of logger points. A logger point is a function block, which has to be implemented inside the project. A logger point can be registered as a child of the application logger or of another logger point.

By registering a set of logger points, a tree of logger points that represents the structure of the project can be build. The logger point supports the functionality to send a logger message to the application logger.

Because each logger point belongs to a given part of the project, the context of the logger message is always clear. There is no need to include the machine part inside the logger message.

Logger messages can be read via EcoStruxure Machine Expert or the function block FB_Appli­cationLoggerHandler. The EcoStruxure Machine Expert handler belongs to the internal part of the library and is always active.

The FB_ApplicationLoggerHandler has to be implemented, if needed.

Example on how to build a logger point tree for a project

G-SE-0064741.2.gif-high.gif

 

 

NOTE: Activating the logger function in POUs increases the cycle load of the program. Ensure that the required system resources are available for the application.

Characteristics of This Library

The following table indicates the characteristics of the library:

Characteristics

Value

Library title

ApplicationLogger

Company

Schneider Electric

Category

Application

Component

CoreLibraries

Default namespace

APL

Language model attribute

Qualified-access-only

Forward compatible library

Yes

NOTE: For this library, qualified-access-only is set. Therefore, the POUs, data structures, enumerations, and constants have to be accessed using the namespace of the library. The default namespace of the library is APL.