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
I'm sure this is likely an issue with the way I've set things up (latest node, bable, webpack, ) but I cannot get string interpolation to work when using Logger.get. ex:
TEST
TEST INTERPOLATED
[Log] Test
[Log] TEST %sPOLATED INTER
So what am I not understanding here?
In addition, if I do not use Logger.useDefaults(), for example by replacing that line with Logger.setLevel(Logger.INFO), I won't see any logs at all. Any thoughts as to why this occurs?
The text was updated successfully, but these errors were encountered:
Yep, the broken string interpolation is indeed a bug caused by the default log message formatter which will unshift a named Logger's name into the messages array; as you may be aware, console.log() and friends will only perform interpolation on first value.
I'm sure this is likely an issue with the way I've set things up (latest node, bable, webpack, ) but I cannot get string interpolation to work when using
Logger.get
. ex:Will output:
So what am I not understanding here?
In addition, if I do not use
Logger.useDefaults()
, for example by replacing that line withLogger.setLevel(Logger.INFO)
, I won't see any logs at all. Any thoughts as to why this occurs?The text was updated successfully, but these errors were encountered: