Skip to content

Instantly share code, notes, and snippets.

@sadaco
Created November 15, 2012 15:49
Show Gist options
  • Save sadaco/4079302 to your computer and use it in GitHub Desktop.
Save sadaco/4079302 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.setLogging(100);
//Log all the messages with priority level "warning" and higher, on all tags.
BugSenseHandler.setLogging("*:W");
//Log the latest 100 messages with priority level "warning" and higher, on all tags.
BugSenseHandler.setLogging(100, "*:W");
//Log all the messages from the ActivityManager and the Debug and higher of your application.
BugSenseHandler.setLogging(400, "ActivityManager:I MyApp:D *:S");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment