Skip to content

Feature request: Ability to switch on and off particular log type -> console.(INFO,WARN,ERROR,TRACE etc)  #202

@crealityeducation

Description

@crealityeducation

If my project has console.(INFO,WARN,ERROR,TRACE etc) log type and accordingly placed in the js library. for DEV purpose I would like to have INFO enabled but in prod I dont want INFO logs. There is a way to handle it with GV INFO = true/false and the INFO && console.info(xxx). But I don't like this way of writing code. Is there any way to set console.info=true/false which will make the specific type of logs visible?

Thanks,
Atul Ingale

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