Aego Playground

aego/logmodule

Debugfunction

func Debug(msg string)

Debug writes a message to the Console. Debug messages are hidden unless the editor runs with -debug.

Example

log.Debug("state " + string(int(state)))

Errorfunction

func Error(msg string)

Error writes an error to the Console. It does not stop the script; use it for problems you can recover from.

Example

log.Error("spawn point missing")

Infofunction

func Info(msg string)

Info writes a message to the Console.

Example

log.Info("ready " + node.Name())

Warnfunction

func Warn(msg string)

Warn writes a warning to the Console.

Example

log.Warn("Target is not set")