Moai SDK  1.5 revision 1 (MoaiEdition)
MOAILogMgr Class Reference

Inherits MOAIGlobalClass< TYPE, SUPER >.

List of all members.

Function List

  closeFile
  isDebugBuild
  log
  openFile
  registerLogMessage
  setLogLevel
  setTypeCheckLuaParams

Function Documentation

Resets log output to stdout.


function closeFile ()
Returns:
nil

Returns a boolean value indicating whether Moai has been compiles as a debug build or not.


function isDebugBuild ()
Returns:
isDebugBuild ( boolean )
log

Alias for print.


function log ( string message )
Parameters:
message ( string )
Returns:
nil

Opens a new file to receive log messages.


function openFile ( string filename )
Parameters:
filename ( string )
Returns:
nil

Register a format string to handle a log message. Register an empty string to hide messages.


function registerLogMessage ( number messageID [, string formatString, number level ] )
Parameters:
messageID ( number )
formatString ( string ) Optional. Default value is an empty string.
level ( number ) Optional. One of MOAILogMgr.LOG_ERROR, MOAILogMgr.LOG_WARNING, MOAILogMgr.LOG_STATUS. Default value is MOAILogMgr.LOG_STATUS.
Returns:
nil

Set the logging level.


function setLogLevel ( number logLevel )
Parameters:
logLevel ( number ) One of MOAILogMgr LOG_NONE, LOG_ERROR, LOG_WARNING, LOG_STATUS
Returns:
nil

Set or clear type checking of parameters passed to Lua bound Moai API functions.


function setTypeCheckLuaParams ( [ boolean check ] )
Parameters:
check ( boolean ) Optional. Default value is false.
Returns:
nil