Websydian v6.1 online documentationOnline documentation - Websydian v6.1

Log Entity


The Log entity contains the Audit Log records created at run-time by the Websydian application.  For each Log record, a number of field values may be stored in the FieldValue entity.

Inheritance

The Log entity inherits from the EditDialog entity in FOUNDATION which itself inherits from the DataAccess entity pattern in the STORAGE library.

The Log entity also inherits from the SurrogateOwned pattern which applies automatic setting of the SequenceNo key field.

Log Fields and Relations

The Session entity defines the following fields:

owned by Session The Log records are identified by the User Session that they occur in.
SequenceNo Internal key set automatically by the inherited Audit functionality.  New sequence numbers are assigned within the SessionID of the Log Entity.
refers to LogType Each Log record generated by the application must belong to a specific Log Type.  A small number of Log Types have been pre-defined covering basic Log types and System Errors.
refers to EventType Relation to the Event Handler associated with the Log record.   All Log records should be related to an Event Type.  The only exception is the logging of a new user entering the application.
LogDescription Description field that can be used to store additional information about the Log record.  This could be a fixed text, an error message, or the value of a specific field.
RequestNo The request number is set to the value of the RequestCount field for the Session owning the Log record.   Each request corresponds to one round in the Websydian Circle.  In this way, the log records of the specific requests can be grouped together.
CreatedDate Date of creation of Log record.
CreatedTime Time of creation of Log record.

Additional Views

3 new views are defined for the Log entity:  They each provide their own order of viewing the Audit Log records.

LogType

The LogType view is sorted by the LogTypeKind and LogTypeID fields followed by the SessionID and the SequenceNo fields.  With this view it is possible to focus on Log records of a specific Log Type.

EventType

The EventType view is sorted by the Event identification followed by the SessionID and the SequenceNo fields.  This view can be used to view the Log records associated to a specific Event Handler function.

DateTimeDesc

The DateTimeDesc view shows the Log records be descending time of creation.  In this way, the latest records created will be shown as the first records in the view.