lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>I'm trying to write user-friendly reportying of Lua error.
>want to print stack trace to the screen and also to log file.
>When using code shown below, stack trace do not saved to logfile.
>I'm sure that is because _ERRORMESSAGE does some extra formatting.

_ERRORMESSAGE does not output anything. This is the job of _ALERT. So,
try redefining _ALERT so that it writes to your log file.
--lhf