Sharp Aion2 Lua SDK
API reference

logLua table

Write messages to your script log.

The log table writes timestamped messages to the Scripts tab, the console, and the matching file in Scripts/logs/. Use each level to make errors easy to find.

log.info(text)

Parameters: text is the message to write. Returns: No result.

log.info("Travel helper loaded")

log.warn(text)

Parameters: text is the warning message. Returns: No result.

local level, err = game.local_level()
if level == nil then log.warn(err) end

log.error(text)

Parameters: text is the error message. Returns: No result.

log.error("Could not finish the requested action")