Syntax 2 For ErrorLogging objects
Description
Writes a string to the log file maintained by the object’s
container.
Controls
ErrorLogging objects
Syntax
|
1 |
<span>errorlogobj</span>.<span>Log</span> ( <span>message </span>) |
|
Argument |
Description |
|---|---|
|
errorlogobj |
Reference to the ErrorLogging service |
|
message |
The text string you want to write to |
Return Values
None.
Usage
The ErrorLogging object provides the ability to write messages
to the log file used by the object’s container, such as jaguar.log for EAServer.
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 EAServer or COM+:
|
1 |
ErrorLogging el |
|
1 |
this.GetContextService("ErrorLogging", el) |
|
1 |
el.<span>log</span>("Write this string to log") |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest