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
In this way they are very similar to console.log; an overload as you are suggesting would be ambiguous:
info(...any)
info(...any, object: fields) // could also match the first overload
I agree that the Fields methods are not pretty, but they are unambiguous…
Although I do agree finding a better interface would be great, so if we can find a better interface that preserves the console.log like functionality while staying unambiguous…that would be great!
Is your feature request related to a problem? Please describe.
the current signature of the
SimpleInterface
logging methods are:It would be more aligned with the bunyan logger, and would allow for potential string interpolation, if the signature would be:
Describe the solution you'd like
create a breaking change and:
SimpleInterface.*Fields()
methodsobject
or astring
message.The text was updated successfully, but these errors were encountered: