ST-BASETOOLS - LOG Functions

Wichtig
Wichtig
using "ST-BaseTools.FBL"

BaseTools_Logging_SetLogMessage

Description: Create or add MessageText to variable X.BaseTools.LogMessage using BaseTools.
Return-Type: void
Nr.
Argument
Typ
Beschreibung
1
logMessage
string
LogMessage to create or add.
2
createTimeStamp
boolean
default = TRUE

BaseTools_Logging_WriteLogMessage

Description: Writes MessageText to variable LogFile using BaseTools.
Return-Type: void
Nr.
Argumente
Typ
Beschreibung
1
logMessage
string
LogMessage to write to file.
2
filePathAndName
string
Path and name of the file to be created.
3
fileEncoding
string
e.g. utf8bom (default = 'utf8')
4
fileChannel
string
default = 4 (Opacc BlockScript)
5
appendFile
string
default = FALSE
Beispiel
BaseTools_Logging_SetLogMessage('MessageText')
BaseTools_Logging_SetLogMessage('MessageText2')

// Create new LogFile
BaseTools_Logging_WriteLogMessage(X.Get('BaseTools.LogMessage'),'..\\tmp\\NEW_LogFile.log')
// Append to existing LogFile
BaseTools_Logging_WriteLogMessage(X.Get('BaseTools.LogMessage'),'..\\tmp\\EXISTING_LogFile.log','utf8',4,TRUE)