Clerk
Clerk is a log service to collect and display your app log on Android devices.
Install
- Simple install by gradle dependency to your project
implementation 'com.github.jintin:clerk:1.1'
- Install the agent app on Google Play or build from
app
module.
Usage
Clerk send log information by Android broadcast functionality. There are two ways to do that:
- Installing the
lib
module by gradle and calling the built-in functionClerkUtils.log()
with require parameter. You can get more information by tracing the sample module - Sending the broadcast by your own follow by the interface:
Intent("com.jintin.clerk.LOG_ACTION").also { it.putExtra("data", "your Log information") it.putExtra("channel", "specific channel for search (optional)") it.putExtra("app", "your packagename") it.component = ComponentName("com.jintin.clerk", "com.jintin.clerk.app.LogReceiver") context.sendBroadcast(it) }
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/Jintin/Clerk.
License
The module is available as open source under the terms of the MIT License.