Energy Patterns for Mobile Apps

← show all patterns

Suppress Logs

Avoid using intensive logging (< 1Hz).

Context

Developers resort to logging in their mobile apps to ensure their correct behavior and simplify bug reporting. However, logging operations are creating overhead on energy consumption without creating value to the end user.

Solution

Avoid using intensive logging, and keeping rates below one message per second.

Example

Disable logging when processing real-time data. If necessary enable only during debugging executions.

References

Occurrences

Android

Issues
Pull Requests
Commits

iOS

Issues
No issues.
Pull Requests
No pull requests.
Commits