https://github.com/codekidx/logboard
User feedback logs
https://github.com/codekidx/logboard
Last synced: 12 months ago
JSON representation
User feedback logs
- Host: GitHub
- URL: https://github.com/codekidx/logboard
- Owner: codekidX
- License: apache-2.0
- Created: 2017-07-05T08:55:08.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-11T10:07:09.000Z (almost 9 years ago)
- Last Synced: 2025-07-05T08:05:33.302Z (12 months ago)
- Language: Kotlin
- Size: 140 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# logboard
User feedback logs

## Installation
Add this to your root build.gradle file under repositories:
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
Add this to your app level build.gradle as dependency:
com.github.codekidX:logboard:1.1
## Implementation
**Java**
```
// after setContentView() in onCreate add this
Logboard logboard = new Logboard();
logboard,init(true, this); //shouldShowDialogOnCrash, activity
Thread.setDefaultUncaughtExceptionHandler(logboard);
```
**Kotlin**
```
val logboard = Logboard()
logboard.init(true, this)
Thread.setDefaultUncaughtExceptionHandler(logboard);
```
## Logboard Dialog
If you want the users to report error with logboard after the crash or for some other reason you can show logboard dialog using the same instance
**Java**
```
logboard.show(); //shows the dialog (but without your app icon)
```
```
logboard.setAppIcon(ContextCompat.getDrawable(getApplicationContext(), R.mipmap.ic_launcher));
logboard.setTipIconColor(ContextCompat.getColor(getApplicationContext(), R.color.colorPrimary));
logboard.show(); //shows the dialog (with your app icon and primary color set)
```
**Kotlin**
```
logboard.show() //shows the dialog (but without your app icon)
```
```
logboard.appIcon = ContextCompat.getDrawable(applicationContext, R.mipmap.ic_launcher)
logboard.tipIconColor = ContextCompat.getColor(applicationContext, R.color.colorPrimary)
logboard.show() //shows the dialog (with your app icon and primary color set)
```
## License
```
Copyright 2017 Ashish Shekar
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```