io
Contents
| Name | Description |
|---|---|
| LOG_DEBUG | Debugging log level |
| LOG_ERROR | Error log level |
| LOG_INTO | Informational log level |
| LOG_NONE | Nonetype log level. |
| LOG_WARN | Warning log level |
| cd( dir ) | Changes the current directory of the program |
| list( ) | A list of files in the current direcotry. |
| log( text , level [, hint ] ) | Logs some text with Irrlicht. |
| set_log_level( level ) | Sets what output gets logged, and what gets ignored. |
LOG_DEBUG
LOG_ERROR
LOG_INTO
LOG_NONE
Use this with io#setloglevel if you don't want to log anything.
LOG_WARN
cd( string dir )
Changes the current directory of the program
Parameters
-
dir (string)
The directory to change to
Defined at client/lua_api/io/ifilesystem.cpp:46
list( )
A list of files in the current direcotry.
Returns
-
The files and directories in the current directory.
Defined at client/lua_api/io/ifilesystem.cpp:13
log( string text , log_level_enum level [ , string hint ] )
Logs some text with Irrlicht.
level may be any of:
io.LOGDEBUG, io.LOGINFO, io.LOGWARN, io.LOGERROR, io.LOG_NONE
Parameters
-
text (string)
The text to log
-
level (log_level_enum)
The log level
-
hint (optional) (string)
An optional hint to supply with the log
Defined at client/lua_api/io/ifilesystem.cpp:64
set_log_level( number level )
Sets what output gets logged, and what gets ignored.
level may be any of: io.LOGDEBUG, io.LOGINFO, io.LOGWARN, io.LOGERROR, io.LOG_NONE
Parameters
-
level (number)
the minimul level of log to capture
Defined at client/lua_api/io/ifilesystem.cpp:93