{"id":847,"date":"2019-08-15T12:21:28","date_gmt":"2019-08-15T11:21:28","guid":{"rendered":"http:\/\/toptechytips.com\/?p=847"},"modified":"2020-06-04T06:27:57","modified_gmt":"2020-06-04T06:27:57","slug":"add-logging-in-android-studio","status":"publish","type":"post","link":"https:\/\/dotslaz.com\/add-logging-in-android-studio\/","title":{"rendered":"How to add logging in android studio with examples!"},"content":{"rendered":"

Android Logging is a must to know every developer we believe. In their development lifecycle, one has to hear \u201cCheck the logs\u201d at least for once from others. In fact, checking the logs saves lots of unexpected errors. But First of all, we need a clear concept on it; Logging, log messages, advantages, and disadvantages, etc. Let\u2019s try to find it out.<\/p>\n

What is this buzzword, \u201cLogging\u201d?<\/h3>\n

Logging \u2014 the cutting, skidding, on-site processing and loading of trees onto trucks (taken from Wikipedia). OK, but this is not what we are looking for. What is logging in software development? What is the role of it?
\nLogging is a process; a process of printing information about what exactly the code is doing, which data we are working on etc. In software development, there are different languages with different syntax, there are different platforms, but the general idea of logging is the same for all.<\/p>\n

Advantages & disadvantages of logging<\/h3>\n

Developers must learn the right way to log. If the logging process is properly, then it can be a saver to detect bugs, performance issues, etc. It can also provide related important information on the software or technology we are using. But if the logging process is wrong, it can create overhead for no reason; i.e. some developers may print a thousand lines of log message without any need.<\/p>\n

Advantages<\/h3>\n