0

is it possible write in a file which is written in the Log command line? I mean, i have my code and to see the Log in Eclipse i write something like

Log.i("BR", "Log Example");

is it possible write the sring "Log Example" in a file? Or, is there a solution to write a report file in which is stored some action of application every 10 minutes?

David_D
  • 1,404
  • 4
  • 31
  • 65

1 Answers1

0

@user1281750 The Log class uses static methods which technically cannot be overridden, but yes, you could extend the class and create wrappers for these methods.

However, I would suggest using a library like log4j instead. Or, if my hunch is correct, you may be looking for something like ACRA.

Zoltán
  • 21,321
  • 14
  • 93
  • 134