Logging
This guide describes how you can write logs while debugging your scripts. It can be helpful too to get feedback from players when they find bugs.
Logging and tracing functions
native func Log(const text: script_ref<String>) -> Void
native func LogWarning(const text: script_ref<String>) -> Void
native func LogError(const text: script_ref<String>) -> Void
// output goes to CET window
native func LogChannel(channel: CName, const text: script_ref<String>)
native func LogChannelWarning(channel: CName, const text: script_ref<String>) -> Void
native func LogChannelError(channel: CName, const text: script_ref<String>) -> Void
native func FTLog(const value: script_ref<String>) -> Void
native func FTLogWarning(const value: script_ref<String>) -> Void
native func FTLogError(const value: script_ref<String>) -> Void
native func Trace() -> Void
native func TraceToString() -> StringExample usage
Where does it go?
Improve logging
Last updated
Was this helpful?