You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, when I set log.options.logHandler = myConsole and the call log.info("test")myConsole is not being invoked.
However the following 2 alternatives work fine: log.console = myConsole and log = new LambdaLog({logHandler: myConsole})
I think this is because internally LambdaLog use the property console and that property is only set during the constructor.
I mention this because the documentation uses log.options.logHandler = myConsole
I'm using version 3.0.0
BTW the property options.logHandler it is not defined in the typescript types.
Thanks
The text was updated successfully, but these errors were encountered:
Hi, when I set
log.options.logHandler = myConsole
and the calllog.info("test")
myConsole
is not being invoked.However the following 2 alternatives work fine:
log.console = myConsole
andlog = new LambdaLog({logHandler: myConsole})
I think this is because internally
LambdaLog
use the propertyconsole
and that property is only set during the constructor.I mention this because the documentation uses
log.options.logHandler = myConsole
I'm using version 3.0.0
BTW the property
options.logHandler
it is not defined in the typescript types.Thanks
The text was updated successfully, but these errors were encountered: