Maptitude GISDK Help |
Appends text to the log file up to the limit to the number of messages.
Added to Version 4.8.
AppendToLogFileWithLimit(int IndentLevel, string text)
Argument |
Contents |
IndentLevel |
The indentation level of the text |
text |
The text of the message to append |
The indentation levels are five spaces each.
When the limit to the number of messages is reached, the message "Additional unlisted errors present (too numerous to list)" is written to the log file, and additional calls to AppendToLogFileWithLimit() will not add any more messages to the log file.
SetLogFileName("c:\\temp\\logfile.txt")
AppendToLogFile(0, "Starting list of messages")
SetLogMessageLimit(25)
// Only the first 25 messages will be appended
for i=1 to 50 do
AppendToLogFileWithLimit(1, "Message #" + String(i))
end
// This message will be appended
AppendToLogFile(0, "Ending list of messages")
Function |
Summary |
Appends text to the log file |
|
Gets the name of the log file |
|
Empties the log file |
©2025 Caliper Corporation | www.caliper.com |