Skip to content

Commit 12611fa

Browse files
Update Code-style.md
1 parent d19afff commit 12611fa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

android/Code-style.md

+6
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ Please follow the [MVP architecture](https://github.com/commons-app/apps-android
4040

4141
Please write unit tests to cover your own code if you are submitting an enhancement (i.e. the issue that you are working on has an "enhancement" label)
4242

43+
## Logging
44+
45+
Please use Timber for logging, for instance `Timber.d("Current image quality is %d", currentImageQuality);`, you may need to import: `import timber.log.Timber;`
46+
47+
Please do not write `e.printStackTrace()`, instead output the exception to Timber.
48+
4349
## Licensing
4450
We can only embed libraries that allow being embedded with Apache 2-licensed software.
4551

0 commit comments

Comments
 (0)