Trigger API Reference\DCEI Functions\Log
void LogMessage(string message)
void LogMessage(string message)
Description
Prints the given message to the Play Settings Log. Useful for debugging.
Parameters
- string
message
The string to output.
Example Usage
-- This will show a normal white message in the play log
DCEI.LogMessage("Hello" .. "World")
-- Multiline
DCEI.LogMessage(
"test"
.. " and test"
.. " and test"
)
Related
void LogWarning(string message)
void LogWarning(string message)
Description
Similar to LogMessage(), but the output text color is orange.
Parameters
- string
message
The string to output.
Example Usage
-- This will show yellow in the play log window
DCEI.LogWarning("Hello" .. "World")
Related
void LogError(string message)
void LogError(string message)
Description
Similar to LogMessage(), but the output text color is red.
Parameters
- string
message
The string to output.
Example Usage
-- This will show up red in the play log with a stack trace
DCEI.LogError("Hello" .. "World")