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
Chrome, Safari and Firefox provide support for this by %c being present anywhere in the first argument then the second argument will be used as an inline style and further arguments concatenated[0].
The reason it currently doesn't work is because the default formatter will shift the name of the logger as first argument meaning the %c is moved to the second message (and ignored).
A fix would be to introduce a new formatter which detects the presence of %c in the first argument and prefixes it to the logger name.
Chrome and Firefox both support colors in console. For example:
js-logger should be able to pass this through to the underlying console implementation (as they are just additional parameters).
The text was updated successfully, but these errors were encountered: