F-Script |
![]() |
NotizSind die LogEntry... Variablen nicht
bereits durch den Anwender definiert, werden sie in der Methode
BlockServices_Common_AddLogEntry_Defaults über die entsprechenden
XCNT-Befehle automatisch hergeleitet.
|
Laufnummer
|
Argumente (mit Beispielwerten)
|
Beschreibung
|
1
|
X.Set('LogEntry.Level','4')
|
Schweregrad der Meldung (z.B. 4 für WARN -
Warnung).
|
2
|
X.Set('LogEntry.Source','MySource')
|
Quelle (Log-Source).
|
3
|
X.Set('LogEntry.AutoCreate','1')
|
Quelle automatisch erzeugen, wenn noch nicht vorhanden
Ja/Nein (1/0).
|
4
|
X.Set('LogEntry.SourceDetail','Details zu
MySource')
|
Quelldetails (Log-Source-Details).
|
5
|
X.Set('LogEntry.Message','Warnungstext, der geloggt
wird.')
|
Meldungstext (mehrzeilig).
|
6
|
X.Set('LogEntry.OOClient','77')
|
OpaccERP Mandant (Nummer).
|
7
|
X.Set('LogEntry.OOUser','1070')
|
OpaccERP Benutzer (Nummer).
|
8
|
X.Set('LogEntry.WindowsUser','MyWindowsUserName')
|
Windows-Benutzername
|
9
|
X.Set('LogEntry.Computer','MyWorkstationName')
|
Windows-Computername
|
10
|
X.Set('LogEntry.Process','')
|
Prozess (z.B. Subroutine, Scriptname etc.)
|
11
|
X.Set('LogEntry.Thread','')
|
Thread
|
Argumente für Funktionsaufruf
|
||
requestName
|
Name des Request (z.B.
'Common.AddLogEntry')
|
|
logLevel
|
Schweregrad der Meldung (Default = 8 -
Error).
|
|
logMessage
|
Meldungstext (mehrzeilig).
|
X.Set('LogEntry.Level', '4') X.Set('LogEntry.Source', 'MySource') X.Set('LogEntry.AutoCreate', '1') X.Set('LogEntry.SourceDetail','Details of MySource') X.Set('LogEntry.Message', 'Warning, Makako is logging in.') X.Set('LogEntry.OOClient', '67') X.Set('LogEntry.OOUser', '1070') X.Set('LogEntry.WindowsUser', 'CapitanoMakako') X.Set('LogEntry.Computer', 'Makakos Workstation') X.Set('LogEntry.Process', '') X.Set('LogEntry.Thread', '') // ----------------------------------------------------------------------------------------------------- // Subroutine aus ST-BlockServices.FBL aufrufen (ACHTUNG: using!) var resultName := BlockServices_Common_AddLogEntry('Common.AddLogEntry') X.Set('LogEntry.Source', 'MySource') X.Set('LogEntry.AutoCreate', '1') X.Set('LogEntry.SourceDetail','Details of MySource') X.Set('LogEntry.OOClient', '67') X.Set('LogEntry.OOUser', '1070') X.Set('LogEntry.WindowsUser', 'CapitanoMakako') X.Set('LogEntry.Computer', 'Makakos Workstation') X.Set('LogEntry.Process', '') X.Set('LogEntry.Thread', '') // ----------------------------------------------------------------------------------------------------- // Subroutine aus ST-BlockServices.FBL aufrufen (ACHTUNG: using!) var resultName := BlockServices_Common_AddLogEntry('Common.AddLogEntry','64','Makako is logging in again.')