You can write to the Script.log file in the Screenshots folder thusly:
Code:
Turbine.Engine.ScriptLog("My debug message here.")
Be aware that the Script.log file is overwritten when the LotroClient starts, and writes to it are delayed by a minute or so. You will need to
if that is not already in your Lua code.