Public Member Functions | |
LogEvent (TZLoggingEvent Event) | |
Handles a new incoming logging event. | |
Save () | |
Saves the logging events into predefined file set in FileName property. | |
SaveToFile (const string FileName) | |
Saves the logging events to the specified file. | |
TZSQLMonitor (TComponent AOwner) | |
Constructs this object and assignes main properties. | |
~TZSQLMonitor () | |
Destroys this object and cleanups the memory. | |
Public Attributes | |
Boolean | Active |
Boolean | AutoSave |
string | FileName |
Integer | MaxTraceCount |
TZTraceLogEvent | OnLogTrace |
TZTraceEvent | OnTrace |
Integer | TraceCount |
TZLoggingEvent | TraceList |
Private Member Functions | |
DoLogTrace (TZLoggingEvent Event) | |
Invokes an event listener after logging event. | |
DoTrace (TZLoggingEvent Event, Boolean &LogTrace) | |
Invokes an event listener before logging event. | |
Integer | GetTraceCount () |
Gets a number of stored logging events. | |
TZLoggingEvent | GetTraceItem (Integer Index) |
Gets a logging event by it's index. | |
SetActive (const Boolean Value) | |
Sets an active state for this monitor. | |
SetMaxTraceCount (const Integer Value) | |
Sets a new number of logging events in the storage. | |
TruncateTraceList (Integer Count) | |
Truncates a storage of logging events to the specified limit. | |
Private Attributes | |
Boolean | FActive |
Boolean | FAutoSave |
string | FFileName |
Integer | FMaxTraceCount |
TZTraceLogEvent | FOnLogTrace |
TZTraceEvent | FOnTrace |
TObjectList | FTraceList |
Definition at line 83 of file ZSqlMonitor.pas.
TZSQLMonitor::TZSQLMonitor | ( | TComponent | AOwner | ) |
Constructs this object and assignes main properties.
AOwner | a component owner. |
Definition at line 191 of file ZSqlMonitor.pas.
TZSQLMonitor::~TZSQLMonitor | ( | ) |
TZSQLMonitor::DoLogTrace | ( | TZLoggingEvent | Event | ) | [private] |
Invokes an event listener after logging event.
Event | a logging event object. |
Definition at line 294 of file ZSqlMonitor.pas.
TZSQLMonitor::DoTrace | ( | TZLoggingEvent | Event, | |
Boolean & | LogTrace | |||
) | [private] |
Invokes an event listener before logging event.
Event | a logging event object. | |
LogTrace | a flag which switches storing the event. |
Definition at line 309 of file ZSqlMonitor.pas.
Integer TZSQLMonitor::GetTraceCount | ( | ) | [private] |
Gets a number of stored logging events.
Definition at line 219 of file ZSqlMonitor.pas.
TZLoggingEvent TZSQLMonitor::GetTraceItem | ( | Integer | Index | ) | [private] |
Gets a logging event by it's index.
Index | an event index. a requested event object. |
Definition at line 232 of file ZSqlMonitor.pas.
TZSQLMonitor::LogEvent | ( | TZLoggingEvent | Event | ) |
Handles a new incoming logging event.
Event | an incoming logging event. |
Definition at line 370 of file ZSqlMonitor.pas.
TZSQLMonitor::Save | ( | ) |
Saves the logging events into predefined file set in FileName property.
Definition at line 324 of file ZSqlMonitor.pas.
TZSQLMonitor::SaveToFile | ( | const string | FileName | ) |
Saves the logging events to the specified file.
FileName | a name of the file to write the events. |
Definition at line 336 of file ZSqlMonitor.pas.
TZSQLMonitor::SetActive | ( | const Boolean | Value | ) | [private] |
Sets an active state for this monitor.
Value | True to activate this monitor and False to deactivate it. |
Definition at line 246 of file ZSqlMonitor.pas.
TZSQLMonitor::SetMaxTraceCount | ( | const Integer | Value | ) | [private] |
Sets a new number of logging events in the storage.
Value | a new number of logging events. |
Definition at line 265 of file ZSqlMonitor.pas.
TZSQLMonitor::TruncateTraceList | ( | Integer | Count | ) | [private] |
Truncates a storage of logging events to the specified limit.
Count | a number of events in the storage. |
Definition at line 280 of file ZSqlMonitor.pas.
Boolean TZSQLMonitor::Active |
Boolean TZSQLMonitor::AutoSave |
Definition at line 164 of file ZSqlMonitor.pas.
Boolean TZSQLMonitor::FActive [private] |
Definition at line 88 of file ZSqlMonitor.pas.
Boolean TZSQLMonitor::FAutoSave [private] |
Definition at line 90 of file ZSqlMonitor.pas.
string TZSQLMonitor::FFileName [private] |
Definition at line 92 of file ZSqlMonitor.pas.
string TZSQLMonitor::FileName |
Definition at line 167 of file ZSqlMonitor.pas.
Integer TZSQLMonitor::FMaxTraceCount [private] |
Definition at line 94 of file ZSqlMonitor.pas.
TZTraceLogEvent TZSQLMonitor::FOnLogTrace [private] |
Definition at line 100 of file ZSqlMonitor.pas.
TZTraceEvent TZSQLMonitor::FOnTrace [private] |
Definition at line 98 of file ZSqlMonitor.pas.
TObjectList TZSQLMonitor::FTraceList [private] |
Definition at line 96 of file ZSqlMonitor.pas.
Integer TZSQLMonitor::MaxTraceCount |
SetMaxTraceCount For writing
Definition at line 170 of file ZSqlMonitor.pas.
FOnLogTrace For writing
Definition at line 177 of file ZSqlMonitor.pas.
TZTraceEvent TZSQLMonitor::OnTrace |
Integer TZSQLMonitor::TraceCount |