TheProductWorks / SMART-android-app

Android version of the SMART Care Tool for the Community Midwifery team in The National Maternity Hospital, Holles Street.
1 stars 0 forks source link

Logging on the app #8

Open Wogiebear opened 8 years ago

Wogiebear commented 8 years ago

Overview

One of the risks identified in risk assessment for ISO27001 is the possibility of logging exposing user sensitive data on the phone.

Control

The control for this risk would be to not log any exception data on the phone. However, we want crash reports to be logged so this may not be entirely possible. In addition debug mode needs to be on for development and testing.

So, we need to investigate ways to:

otormaigh commented 8 years ago

See Pull Request #14

A new library was added https://github.com/JakeWharton/timber to help with disabling logging when the app is in release mode.

Now when the app is in debug mode for devlopment purposes log are generated. When a build is created in release mode which will then be distrubute to the end user the logs will be disabled by default.