lua-users home
lua-l archive

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


Luiz Henrique de Figueiredo wrote:

> >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.

Well, you right, but I still suck:

_ALERT = function(str)
	F("Call _ALERT with %s", str)
end

My _ALERT doesn't called anyway.

-- 
Any sufficiently advanced technology is indistinguishable from magic.
		-- Arthur C. Clarke