OpenUserLog - Debug: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
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 ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
bool Function OpenUserLog(string asLogName) native global
bool Function OpenUserLog(string asLogName) native global
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 18: Line 18:


== Examples ==
== Examples ==
<source lang="papyrus">
<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")
</source>
</syntaxhighlight>


== Notes ==
== Notes ==

Navigation menu