Log

Syntax

Konsol:Log(String message)

Description

Logs message to KonsolScript log file.

Note

Useful for debugging game/program.

Will only work if NOLOGFILE is set to 1 in konfig.cfg file.

Example

function main() {
  Var:Number x;
 
  Math:Random(0, 100, x)
 
  Konsol:Log("x's value is " + x) //logs the message "x's value is 3" (if x is 3)
}
www.konsolscript.org
© 2005-2011 KonsolScript Labs | All Rights Reversed | Licensed under GNU GPL | Designed by Mj Mendoza IV
http://www.sourceforge.net