darekf77 / ng2-logger

Isomorphic logger for Browser and NodeJS, ( typescript / javascript ) apps
MIT License
61 stars 17 forks source link

Reconfiguration after initialization? #31

Closed jdoose closed 5 years ago

jdoose commented 6 years ago

I noticed that the logger cannot be reconfigured after initialization, i.e. setProductionMode.

Is this intended and why? Thanks for your feedback!

darekf77 commented 6 years ago

I think it doesn't make sense to change this value multiple-times during application execution time...

jdoose commented 6 years ago

In our use case, we wanted to have a menu button on the website to allow the user to enable/disable logging. This is currently not possible. I do not see a technical reason to prevent it or did I miss something?

darekf77 commented 5 years ago

@jdoose logger from version 2.0.42 should be reconfigurable in production mode.