Tracking and Logging Errors

Hey guys,

I’m looking to implement a way in log any errors that occur during runtime and save them to a local or hosted file so that I can more easily debug errors when I have others play test my application. I’ve been peering into the base debug lua class, but can’t seem to find exactly what I’m looking for. Is there a way in Lua to have a method call every time an error is hit so I can log the error details (file, line, error message, etc) information into a file?

Thanks [import]uid: 138013 topic_id: 34717 reply_id: 334717[/import]

I have been looking for the same thing.  So far with no success.  I have a basic routine I do to put out “trace” information.  I am looking to modify it to remember the last “n” traces and then dump them to a file somehow on exit/error but was looking to see if somebody already had done something similar/better.

We recently exposed the ability to trap run time errors.  See this blog post:

http://www.coronalabs.com/blog/2013/03/13/wednesday-faq-runtime-error-listener/

Once you catch the error, you could then log it to a file or to a remote server.

I have been looking for the same thing.  So far with no success.  I have a basic routine I do to put out “trace” information.  I am looking to modify it to remember the last “n” traces and then dump them to a file somehow on exit/error but was looking to see if somebody already had done something similar/better.

We recently exposed the ability to trap run time errors.  See this blog post:

http://www.coronalabs.com/blog/2013/03/13/wednesday-faq-runtime-error-listener/

Once you catch the error, you could then log it to a file or to a remote server.