Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6704707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:19:10+00:00 2026-05-26T07:19:10+00:00

I would to know whether logging can decrease application performance? Also, please give me

  • 0

I would to know whether logging can decrease application performance?
Also, please give me some tips to increase android application performance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:19:10+00:00Added an answer on May 26, 2026 at 7:19 am

    Yes. Excessive logging affects the performance of any application not just Android.

    The developer guide suggests you to deactivate and disabled logging before release:

    Turn off logging and debugging Make sure you deactivate logging and
    disable the debugging option before you build your application for
    release. You can deactivate logging by removing calls to Log methods
    in your source files. You can disable debugging by removing the
    android:debuggable attribute from the tag in your
    manifest file, or by setting the android:debuggable attribute to false
    in your manifest file. Also, remove any log files or static test files
    that were created in your project.

    Also, you should remove all Debug tracing calls that you added to your
    code, such as startMethodTracing() and stopMethodTracing() method
    calls.

    So, you should suppress the logs in “release” or “production” build of your App.

    Turn off it in Android Manifest by setting debuggable:

    <application android:icon="@drawable/icon" 
            android:label="@string/app_name"
            android:debuggable="false">
    

    Another way

    Create your own logger class and check for debugging mode before executing log. It allows single point modification between debugging mode and deployed application and allows extra things to do such as writing to log file.

    import android.util.Log;
    public class MyLog {
        private static final boolean isDebug = false;;
        public static void i(String tag, String msg) {
            if (isDebug) {
                Log.i(tag, msg);
            }
        }
        public static void e(String tag, String msg) {
            if (isDebug) {
                Log.e(tag, msg);
            }
        }
    }
    

    For further info read http://rxwen.blogspot.com/2009/11/logging-in-android.html

    and The SO QAs :

    Log.d and impact on performance

    Android Logging – How to clear for better performance

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a walkie-talkie application for Android, and would like to know whether
I would like to know whether Redbean ORM can be used for performance oriented
I would like to know whether this is actually possible in Android? When Android
I would like to know whether something like this can be easily achieved, any
I would like to know whether there are software that a user can edit
I would like to know whether i can get the drive information using the
I am new to JavaFx technology, I would like to know whether I can
Hi would anyone know whether it is possible to create a HTML 5 application
I would like know whether we can highlight text (colors) of already created PDF
I would like to know whether a server application will always answer on the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.