Skip to content

Logging

Ruslan Mustakov edited this page May 18, 2016 · 2 revisions

The logging procedures nimue4 supports are:

proc ueFatal*(s: string)
proc ueError*(s: string)
proc ueWarning*(s: string)
proc ueDisplay*(s: string)
proc ueLog*(s: string)

They match the corresponding log levels of Unreal Engine. Log categories are not supported yet - the messages will be logged into the LogTemp category.

Formatting can be achieved with the help of strutils.% procedure:

import ue4
import strutils

uclass APerson of AActor:
  method beginPlay() {.override, callSuper.} =
    ueLog("Hey there, my name is $#. I'm located at $#" %
          [$this.getDebugName(), $this.getActorLocation()])
Clone this wiki locally