Skip to content
/ Logly Public

android -record the crash info(exception ,error,anr) to file , monitor application performance by aop

Notifications You must be signed in to change notification settings

CatRuan/Logly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logly

logly is a demo to show
how to check application's performance by PFLog and record crash info when application run by BugLog


BugLog

what is this for?

buglog is a log manager for application crash

when a crash happens in our application ,buglog will write those infos into a file
  the crash include exception which uncaught and ANR question (html exception is considered )

the buglog file named "BugLog.txt"

and put in path "/storage/emulated/0/Android/data/package/files/apm_log/BugLog.txt"


how to use it ?

it is very simple to use this

start it in our application class

BugLog.getInstance().start(this);

if you want to get the file
 

BugLog.getInstance().getBugLogFile();


the BugLog.txt just like this

date:2017-05-25 14:29:52

----deviceInfo----

BOARD=MSM8916

versionCode=1

versionName=1.0

----netState----

networkState =networkWifi

----crashInfo----

java.lang.NullPointerException

at com.rd.pflog.log.PFLogHandler.afterAddRecord(PFLogHandler.java:46)

at com.rd.pmlog.PerformanceActivity.onClick(PerformanceActivity.java:45)

at android.view.View.performClick(View.java:4496)

at android.view.View$PerformClick.run(View.java:18603)

at android.os.Handler.handleCallback(Handler.java:733)

at android.os.Handler.dispatchMessage(Handler.java:95)

at android.os.Looper.loop(Looper.java:136)

at android.app.ActivityThread.main(ActivityThread.java:5426)

at java.lang.reflect.Method.invokeNative(Native Method)

at java.lang.reflect.Method.invoke(Method.java:515)

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)

at dalvik.system.NativeStart.main(Native Method)

About

android -record the crash info(exception ,error,anr) to file , monitor application performance by aop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages