Skip to content

Instantly share code, notes, and snippets.

@PanosJee
Created June 11, 2012 21:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PanosJee/2912787 to your computer and use it in GitHub Desktop.
Save PanosJee/2912787 to your computer and use it in GitHub Desktop.
bugsense logcat support
// For example if you want to get the last 1000 lines and log all messages
// with priority level "warning" and higher
BugSenseHandler.setLogging(1000, "*:W");
//Log last 100 messages
BugSenseHandler.readLogs(100);
//Log all the messages with priority level "warning" and higher, on all tags.
BugSenseHandler.readLogs("*:W");
//Log the latest 100 messages with priority level "warning" and higher, on all tags.
BugSenseHandler.readLogs(100, "*:W");
//Log all the messages from the ActivityManager and the Debug and higher of your application.
BugSenseHandler.readLogs(400, "ActivityManager:I MyApp:D *:S");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment