OutputDebugString
outputDebugString
Writes a message to the resource log at the requested severity level.
Syntax
bool outputDebugString(string message [, int level = 3])
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
message |
string |
yes | The text to write to the resource log. |
level |
int |
no | The severity: 1 for error, 2 for warning, or 3 for information. |
Returns
Returns true after the message has been accepted.
Examples
Write an informational message to the log:
outputDebugString("The resource has started", 3)
Notes
- Available in both client-side and server-side resource scripts.