Introduction
Manages logging in Lua via the org.apache.log4j.Logger class.
Methods
logger:info
logger:info(message)
- Prints an information level message to the console.
- Parameters:
- message: Text to be printed.
logger:warn
logger:warn(message)
- Prints a warning level message to the console.
- Parameters:
- message: Text to be printed.
logger:error
logger:error(message)
- Prints an error level message to the console.
- Parameters:
- message: Text to be printed.
Usage
Examples
local zone_name = "0_semos_city"
if game:setZone(zone_name) then
-- do something
else
logger:error("could not set zone: " .. zone_name)
end