{"repo":"volvo-cars/sensible-logging-for-android","free":true,"listed":false,"github":"https://github.com/volvo-cars/sensible-logging-for-android","clone":"git clone https://github.com/volvo-cars/sensible-logging-for-android.git","description":"Extendable log utils for Android projects","language":"Kotlin","stars":38,"topics":["logging","android","android-library","tracing"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"Sensible logging for Android aim to provide no-nonsense logging frontend API that is easily extended. The goal of this library is not to be rich in features, but to provide a stable baseline for you to build on in your own projects. Core concepts The library consists of a few fundamental elements: Logger class The Logger class is the main interaction point of this library. Inside it you will find the familiar log statement methods such as Logger.d() Channels Logger directs the log statements to Channel implementations. One log statement can end up in multiple Channels. Currently, the library includes LogCatChannel and StandardOutChannel (for unit tests). Depending on your use-case, either implement a subtype of ReleaseChannel or DebugChannel . - DebugChannel s are meant to be used during development. Additional to the log-line, it includes the following information: It retrieves this data using Throwable().stackTrace . Be aware that it can have negative impact to performance, so default to only use it in debug builds. - ReleaseChannel s only include the log-line and are meant to be used in release-builds. Channel ids A channel has a integer identifier. You can optionally specify a channel ID in your log statement to also print to that channel. As an example, you can log non-fatal exceptions and messages to your crash reporting service via a CrashReportingChannel . Using that you can easily log to your crash reporting service from wherever in your code. While the channel param","default_branch":null,"files":null,"tree":[],"storefront":"/r/volvo-cars","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/volvo-cars/sensible-logging-for-android/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}