thomasfr/node-konsole — Issue #1: Feature request: allow module/line number as optional to reduce overhead
Author: jeffbski
Created: 2012-01-27 18:33:01+00:00
State: open

Would you consider making the module/line number optional? (so I could turn this off)

Reason I offer this idea is that it would be nice to be able to use this in place of console (and to be able to leave it in the code). When in production you could simply not listen to the events. When you want to debug/monitor, start listening.

However I am not real comfortable leaving calls to konsole in place it if will be calculating module/line number by creating and parsing stack trace. It feels like this would be quite a bit of overhead on each and every call, even if I don't need it or worse even if I am not even listening to any konsole events.

If you made this optional, I could decide whether I want to have this information and keep the overhead to a minimum.