Mod:Creation Kit/Trace - Debug

Member of: Mod:Creation Kit/Debug Script

Outputs a string to the Papyrus log on disk, and the Papyrus overlay.

Syntax
Function Trace(string asTextToPrint, int aiSeverity = 0) native global debugOnly

Parameters

 * asTextToPrint: The text that should be printed to the log and text page.
 * aiSeverity: The severity of the trace statement. Info, the default, shows up as green; warnings will show up as yellow; and errors as red; in the Papyrus debug text page.
 * Default: 0 (Info)
 * The following values are acceptable:
 * 0: Info
 * 1: Warning
 * 2: Error

Return Value
None

Examples
Debug.Trace("Hello, World!") Debug.Trace("Hello, World!", 2)
 * Output "Hello World" to the log
 * Output "Hello World" to the log at error severity