mrkmarron / logpp

An experimental next generation logging framework for JavaScript and fluent.
MIT License
65 stars 0 forks source link

log only works if required from main file #6

Open jccguimaraes opened 5 years ago

jccguimaraes commented 5 years ago

i am trying to build a wrapper around this module so I don't need to setup common options every time i need it in a new service.

But looking at the code, the log only works if required from main entry file. if not, all functions are NOP. this is a limitation in my point of view.

Can you help me out, if i am missing something to make it work when requiring it from another files other than the main one? messing with the setLoggingLevel and alike, does not seem to make effect.

Really appreciate your help