Logging into GenEvent on Server Side

 

For security reasons, logging into GenEvent is executed from server side, not by calling from the client's side.

That is why there is a new implementation that could be incompatible regarding the text of a logged message.

It is possible to change/overwrite the logged message text in a configuration file.

 

Starting version 10.97.2, the text of a logged message can be changed by the user. It applies to all types of messages. It is done in the FwxServer.Network.config file in the <MessageOverride> section of the file.

 

For each operation (Write, HistoryWrite, HistoryDeleteRaw etc.), there are four strings that are empty by default. If they stay empty, the default text is used. If the user writes a text, it is used instead of the default text.

 

There are four boxes:

 

- SuccededMessageFormat – ‘Message’ box in case that the operation succeeded,

- SuccededCommentFormat – ‘Comment’ box in case that the operation succeeded

- FailedMessageFormat – ‘Message’ box in case that the operation failed

- FailedCommentFormat – ‘Comment’ box in case that the operation failed

 

The text can contain placeholders for parameters that are relevant to a concrete operation.

 

Placeholders must be in curly brackets. They are the following:

 

General (for all operations):

 

{Result} – the operation result (e.g., ‘Good’ or ‘Bad – Server Failed’’ etc.)

{PointName} – the point's name that the operation was executed on (e.g., which point was written into)

{Source} – identifies the application that executed the operation (e.g., GraphWorX)

{MachineName} – the client's computer name

{ProcessName} – the client's computer process (e.g., GwxConfigApp.exe)

{IPAddress} – IP address of the client's computer (it does not have to be always accessible)

{UserName} – the name of the user who launched / started the operation if she or he was logged in

 

For writing and dataset update:

{PrevValue} – previous value

{NewValue} – newly written value

 

 

For methods' calling:

 

{MethodName} – for the name of the called method

{InputArguments} – input arguments

{OutputArguments} – output arguments

 

For HistoryDeleteRaw:

 

{StartTime} – start time of a deleted interval / of an interval being deleted

{EndTime} – end time of a deleted interval / of an interval being deleted

 

For HistoryDeleteAtTime:

 

{Time} – the time for which the sample is being deleted

 

For History InsertReplace:

 

{Value} – the inserted value

 

For Alarm operations (acknowledge a set state):

 

{Comment} – a comment

{Acknowledger) – the person who acknowledges

{SourcePointName} – the name of the point that generated the alarm

{Severity} – severity from 0 to 1000

{State} – the state that is being set