Syntax 2: For ErrorLogging objects
Description
Writes a string to the log file maintained by the object’s
container.
Applies to
ErrorLogging objects
Syntax
|
1 |
errorlogobj.Log ( message ) |
|
Argument |
Description |
|---|---|
|
errorlogobj |
Reference to the ErrorLogging service |
|
message |
The text string you want to write to the |
Return value
None.
Usage
The ErrorLogging object provides the ability to write messages to
the log file used by the object’s container.
Before you call the Log function, create an instance of the
ErrorLogging service by calling the GetContextService function.
Examples
The following example shows how to write a string to the log for
COM+:
|
1 2 3 |
ErrorLogging el this.GetContextService("ErrorLogging", el) el.log("Write this string to log") |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest