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
This works but makes logs ugly as soon as someone write console.log("something happened" , {foo: "bar"}) as it yields something happened [object Object]
Proposed solution
Extend the config with a LogMessageSerializer which is used instead of the hard coded String(arg);.
Use current behaviour as a default StringLogMessageSerializer in the config but it could be overwritten with a e.g. JSONLogMessageSerializer that would do something like JSON.stringify(arg)
The text was updated successfully, but these errors were encountered:
Description
Currently the
args
array for thepushLog
function maps each arg to a string.This works but makes logs ugly as soon as someone write
console.log("something happened" , {foo: "bar"})
as it yieldssomething happened [object Object]
Proposed solution
Extend the config with a
LogMessageSerializer
which is used instead of the hard codedString(arg);
.Use current behaviour as a default
StringLogMessageSerializer
in the config but it could be overwritten with a e.g.JSONLogMessageSerializer
that would do something likeJSON.stringify(arg)
The text was updated successfully, but these errors were encountered: