Logs? How to take logs? What it means? #Lavender Guide

Logs? How to take logs? What it means? #Lavender Guide

๐•ฝ๐–Ž๐–˜๐–๐–†๐–‡๐– ๐•ฎ๐–๐–†๐–š๐–๐–†๐–“ ๐Ÿ‡ฎ๐Ÿ‡ณ #โ„“ฮฑฮฝั”ฮทโˆ‚ั”ัโ„ข #Predator is โค๏ธ

What is Logging? or What we mean by Logs?

Ans - In Android, Each and everytime lots of processes, services, background apps runs in the background. Sometimes, because of a single error, app fails to run or force closes everytime. So, it's the responsibility of Android system to tell the user's WHY THE APP CRASHED OR FORCE CLOSED. So, the system keeps tracking down all the events which runs in the background and foreground. When a service fails to run because of an issue, the logging service becomes active (What is Logging service ? - It is a service which helps the system to capture logs) so, when an app crashes, the logging service automatically records the cause of the app crash/force close. Logs tell the Devs. the reason why the app crashed or the service failed to run.



Imp -

# You might have seen, whenever u report an issue in any Custom rum related group. The first reply of the Maintainer remains "Kindly provide the logs" That is just because without logs one can't predict why the app crashed or system crashed...

# Some people asks for "dmesg" and "ramoops" so What is that ? ๐Ÿฅด๐Ÿง

1. dmesg = Guys, dmesg is a command which prints the detailed kernel log which consists several important info about the operation kernel and it's drivers etc.

2. ramoops = ramoops is the log which system writes up before the system crashes. It means ramoops will provide detailed information about Why the system crashed or force restarted itself. Will explain, how to understand a system log later on.



# So, How to take a LOG ?? Kindly follow this guide to do so.... With the help of this guide, u will be able to capture logs and then u can send that to the Maintainer :-)

Guys, their are lots of ways to capture logs but I'm explaining the easiest method here ๐Ÿ™‚


ย ย 1. Kindly download the Matlog app from HERE

โœ“ Matlog is my fav. app to get logs, their are others too in Playstore but believe me Matlog is lob ๐Ÿ˜



2. Now, Open the Matlog app and it'll ask you to give ROOT... Grant the root permissions...



3. Now, u will see a long list of alien language ๐Ÿฅด bla bla u won't understand anything. Now, u have to clear all that alien language. So, now click the three dot menu on the top side. And, Click "Clear"



4. Now, U will see an empty screen ๐Ÿ˜Œ Now, click on the Three Dot Menu again and select "File" option then, select "Record"



5. It'll ask for Storage Permission. Give it.. Now, select "OK"



6. Nice.. Now, it'll start recording the log.



7. Wait wait ๐Ÿ˜ถ Now, U have to recreate the force close/crash again ๐Ÿ˜‰ It means now u have to open that application or that setting again which is crashing again and again. So, that the Matlog app can capture that.



8. Now, after u opened that app which crashed. Now, go back into Matlog app and click on the Stop button (round button) in the downside of the right corner.



9. Finally, Just send the Generated file to the Maintainer/Developer so that they can check the cause behind crash..



โœ“ Things to remember :

1. Do note u have to Capture the Logs only from that point where the crash occurs. But why so ?

๐Ÿคฆ๐Ÿปโ€โ™‚๏ธ It's really frustating for the Devs. to check the Never Ending logs ๐Ÿฅบ If a log is at the point and short then it's gud. And, Devs. can easily identify the root cause behind crash.


2. Kindly Run the matlog app and record only that part when crash occurs. For example - Let us suppose, I opened Gcam and it crashed ๐Ÿ˜

I reported this to the maintainer but first i have to provided the logs as well. So,

a. I will open the Matlog app. And, click on the Record buttonb

b. And Open the gcam again. It will again crash.

c. Now, after the crash i will go back to Matlog app and Stop the recording and send the log to maintainer.


3. But, suppose a situation where u started the recording and started playing pubg ๐Ÿ˜‘ and started listening to Music instead of recording the crash. It'll not only increase the log size but also demotivate the dev. to check log. It's really heart breaking for the Dev. when they see logs of 10mb and more.


That's all for this guide guys. Their are a number of ways to record logs but Matlog does the same thing in much simpler way...

Check Out My Next Article - Here

Report Page