I have many
(or any other console calls
) in my code and I would like to use them only
when my app is in some kind of "debug mode"
I can't seem to use some kind of logger function and internally use
because then I wouldn't know what line fired it. Maybe only with a try/catch, but my logs are very general and I don't want try/catch in my code.
What would you recommend?