28.02.2011 0:51, Jake Colman пишет:
Kostya,
Unless I misread it, ACRA is good for catching thrown exceptions and
automatically sending them to the developer. I am looking for something
will allow me to create a trace file. Essentially, I'm looking for a
good way to trap the kind of output that I might otherwise send to
syslog (via Log.d) but do it such that I can collect the trace and have
the app email it upon request. Can ACRA do this?
They talk about it here:
http://code.google.com/p/acra/wiki/ACRA3HowTo#Can_I_send_reports_for_caught_exceptions_?_or_for_unexpected_app
but I think it still requires an exception, and each one is sent as a
separate reported event.
I also looked at microlog4android but the documentation is not easy to
follow and it looks like alot of work.
A helpful soul in this group provide me some starter classes that will
log a trace into a database. I can then access the database when I want
and extract what I am looking for.
Can you suggest some other alternative?
Well, to share some experience - I use my own logger that can output to
logcat or a text file, and has settings for individual "facilities"
(i.e. output only network-related events, or worker-thread-related
events, etc.), as well as crash logging. Writing it wasn't terribly
difficult, and if I had to do it over again, I would.
Perhaps this is another option for you to consider: log data to a text
file on the memory card. Ask your user (since he's cooperating) to email
it to you. Fix the bug - done - move on - probably in less time than it
takes to understand a ready-made logging facility.
Getting back to the original topic, so a Content Provider is a good
paradigm to use across the board even if the database is only meant to
be used internally?
I like content providers for the reasons outlined in my previous email.
YMMV.
-- Kostya
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en