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

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"
)

void LogWarning(string message)

void LogWarning(string message)

Description


Similar to LogMessage(), but the output text color is orange.

Parameters

Example Usage

-- This will show yellow in the play log window
DCEI.LogWarning("Hello" .. "World")

void LogError(string message)

void LogError(string message)

Description


Similar to LogMessage(), but the output text color is red.

Parameters

Example Usage

-- This will show up red in the play log with a stack trace
DCEI.LogError("Hello" .. "World")