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.
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