1,482
edits
imported>Bug64 m (Extended the example to show writing to the log after opening it) |
m (Convert source tags to syntaxhighlight) |
||
| Line 7: | Line 7: | ||
== Syntax == | == Syntax == | ||
< | <syntaxhighlight lang="papyrus"> | ||
bool Function OpenUserLog(string asLogName) native global | bool Function OpenUserLog(string asLogName) native global | ||
</ | </syntaxhighlight> | ||
== Parameters == | == Parameters == | ||
| Line 18: | Line 18: | ||
== Examples == | == Examples == | ||
< | <syntaxhighlight lang="papyrus"> | ||
; Opens a new user log name "myUserLog" | ; Opens a new user log name "myUserLog" | ||
Debug.OpenUserLog("myUserLog") | Debug.OpenUserLog("myUserLog") | ||
| Line 24: | Line 24: | ||
; Outputs "Hello World" to the "myUserLog" log | ; Outputs "Hello World" to the "myUserLog" log | ||
Debug.TraceUser("myUserLog", "Hello World") | Debug.TraceUser("myUserLog", "Hello World") | ||
</ | </syntaxhighlight> | ||
== Notes == | == Notes == | ||