From Blue Mars Developer Guidebook
You can log diagnostic text to the console and/or log file (Editor.log if you're running in the Sandbox Editor, otherwise Game.log), by inserting logging functions in your script.
Logging functions are available in:
- System functions System.Log and LogAlways
- The debug functions in Avatar Reality Utilities
- LogVec in CryEngine Lua Utilities
Here are the console logging variables and description of the logging levels:
CryEngine includes a Lua debugger to assist in script development.