Skip to content

Printing logs in Production version #529

@ale-rota

Description

@ale-rota

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions