Components TLogMsg and TLogMsgHandler tracks use of SCADA application.
TLogMsg, palette SmartSCADA System, unit LogMsg.pas
Component that holds data to which part of application is to be access.
PROPERTIES
Enabled: boolean
Enables or disables component.
IniFile: TIniComponent
Pointer to INI file that holds message text. This means that message text can be change externally, without of source code changing.
LogMessage: string
Message text that.
LogStatus: TLogStatus
This property determines behavior of component.
|
Value
|
Description
|
|
lsNone
|
Component is idle
|
|
lsStart
|
Sends message on form (application) start.
|
|
lsClose
|
Sends message on form (application) closing.
|
|
lsStartClose
|
Sends message on form (application) start and closing..
|
METHODS
procedure Save; virtual;
this method is called to save message text to database. To execute this method, it is necessary that application has LogMsgHandler component that will handle message.
TLogMsgHandler, palette SmartSCADA System, unit LogMsg.pas
Component that handles messages that TLogMsg type components send. Application can has only one object of this type.
Component is inherited from TTable. Additional properties of this component are:
Automatic table creating if it not exists.
Fixed table size
PROPERTIES
AppClosed: string
Message that will be written to database when application is closed.
AppStarted: string
Message that will be written to database when application is started.
EnabledMaxNumRecords: Boolean
Determines if database will have fixed size or not.
MaxNumRecords: longint
Defines the size of database (number of records).
FillTable: boolean
When change this property in design time, database will be filled to defined size. After that, property is reset to false. This is introduced to escape fragmentation of database.
Operator: TOperator
Pointer to TOperator object.