Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printing logs in Production version #529

Open
ale-rota opened this issue Dec 17, 2024 · 0 comments
Open

Printing logs in Production version #529

ale-rota opened this issue Dec 17, 2024 · 0 comments

Comments

@ale-rota
Copy link

Reading the documentation it seems like when the environment is Production, it's not possible to print the logs.

What is the reason behind that?

In our case we have a build variant that is pointing to production environment (hence we need to use Production environment in mParticle sdk configuration) but it's debug. In that variant we would like to print the logs.

I see the check on the environment is made in AbstractLogHandler, isLoggable private method.
In theory we could override the log method and achieve what we want, but it doesn't feel like the right way to do it.

Is there a less hacky way to be able to print the logs on a debug variant that points to Production?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant