StendhalScripting/LuaAPI: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
game: add descriptions
imported>AntumDeluge
logger: clean up
Line 37: Line 37:


Methods:
Methods:

* ''<span style="color:green;">logger:info</span>(message)''
; ''<span style="color:green;">logger:info</span>(message)''
** Prints an information level message to the console.
: Prints an information level message to the console.
** <span style="color:darkblue; font-style:italic;">message:</span> Text to be printed.
: '''''message:''''' Text to be printed.
* ''<span style="color:green;">logger:warn</span>(message)''

** Prints a warning level message to the console.
** <span style="color:darkblue; font-style:italic;">message:</span> Text to be printed.
; ''<span style="color:green;">logger:warn</span>(message)''
: Prints a warning level message to the console.
* ''<span style="color:green;">logger:error</span>(message)''
: '''''message:''''' Text to be printed.
** Prints an error level message to the console.

** <span style="color:darkblue; font-style:italic;">message:</span> Text to be printed.
; ''<span style="color:green;">logger:error</span>(message)''
: Prints an error level message to the console.
: '''''message:''''' Text to be printed.


Example usage:
Example usage: