Background for Skyrim SE
Member of the Debug script
boolfunctionTraceUser(stringasUserLog, stringasTextToPrint, intaiSeverity=0)NativeGlobal

Description

Wiki Description

Outputs a string to the specified user log on disk, and the Papyrus debug text page. Returns true if the text was successfully output to the log.

Documentation Comment

Outputs the string to a user log - fails if the log hasn't been opened


Caveats


Parameters

stringasUserLog

CK Wiki Description

The name of the user log to output to, case-insensitive. The log must be open.

stringasTextToPrint

CK Wiki Description

The text that should be printed to the log and text page.

intaiSeverity=0

CK Wiki Description

The severity of the trace statement. Info, the default, will show up as green; warnings will show up as yellow; and errors as red; in the Papyrus debug text page.

  • The following values are acceptable:* 0:Info
    • 1:Warning
    • 2:Error

Examples

; Outputs "Hello World" to the "myUserLog" log
Debug.TraceUser("myUserLog", "Hello World")
; Outputs "Houston, we have a problem" to the "myUserLog" log at error severity (colored red)
Debug.TraceUser("myUserLog", "Houston, we have a problem", 2)

Auto-Generated Example

string myString__asUserLog
string myString__asTextToPrint
int myInt__aiSeverity

bool returnedValue = Debug.TraceUser(myString__asUserLog, myString__asTextToPrint, myInt__aiSeverity)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.