Is it possible to hide or suppress any Adobe related error logs and details in the production version of the mobile app? | Community
Skip to main content
Level 2
June 29, 2023
Solved

Is it possible to hide or suppress any Adobe related error logs and details in the production version of the mobile app?

  • June 29, 2023
  • 1 reply
  • 1003 views

Hello there,
Just wanted to understand if it's possible to completely suppress or hide error logs/details at the production level.

Scenario:
We have integrated Adobe Launch SDK (version : 1.+ ) in our android application, and during execution of the production version, some error exception log/details were found in the mobile app console logs. So, we wanted to hide or suppress any exposed Adobe error logs/details in the production version.

More details :

Actually, we wanted to control & hide any adobe related error/exception log details from the production version of the application. 

 

As per the below details, if we don't even set any logging modes then it should be by default as ERROR, but we don't want to display any log details to be appeared at the android console (related to adobe SDK/analytics). 

Useful link : 

https://developer.adobe.com/client-sdks/previous-versions/documentation/mobile-core/api-reference/ 

 

Any idea how to do it and what the preferred options are to attain the same. Thanks in advance for your help.

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by V_Sirish_Kaushik1

Okay, I did understand the issue. You want to do conditional logging where you want logs of everything but Adobe. I think in that case, you can create a custom function which would identify Adobe logs and not display them. For instance. 

if (BuildConfig.DEBUG && !adobeError(error)) {
    Log.e(TAG, "Error >>" + error.getMessage());
}

adobeError could be something like 

 

 

adobeError(Throwable error) { if (error.getMessage() != null && error.getMessage().contains("Adobe")) { return true; } return false; }

 

 

But yeah, might have to test it, let me know if it works : )

1 reply

V_Sirish_Kaushik1
Level 4
June 29, 2023

Not sure what you mean by suppress, but I guess exceptional handling, using try catch generally does hide errors if they are occurring in code.

SubirDaAuthor
Level 2
June 30, 2023

Thanks for your response. 

Actually, we wanted to control & hide any adobe related error/exception log details from the production version of the application even if it's triggered at the SDK library code level implicitly. In addition, added more details for better understanding. Hope it helps. 

V_Sirish_Kaushik1
V_Sirish_Kaushik1Accepted solution
Level 4
June 30, 2023

Okay, I did understand the issue. You want to do conditional logging where you want logs of everything but Adobe. I think in that case, you can create a custom function which would identify Adobe logs and not display them. For instance. 

if (BuildConfig.DEBUG && !adobeError(error)) {
    Log.e(TAG, "Error >>" + error.getMessage());
}

adobeError could be something like 

 

 

adobeError(Throwable error) { if (error.getMessage() != null && error.getMessage().contains("Adobe")) { return true; } return false; }

 

 

But yeah, might have to test it, let me know if it works : )