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
Is your feature request related to a problem? Please describe.
Cannot be used directly as a placement of the console object as string formatting is not supported:
In this example %s is not replaced by the following arguments like it's with console.log.
Describe the solution you'd like
Add printf-like formatting for strings passed to any logger. Strings can be formatted with util.format().
Additionally the replaced values could be highlighted with a color specific to each logger. For example signale.success('Operation %s successful', 'xyz'); could write ✔ success Operation xyz successful with xyz in green as it is the color associated with the success logger.
Additional context
Possible implementation to use:
* feat(): support printf-like formatting
* fix(test): removed one code comment
* fix(#24): Print stringified and colorized objects
* refactor: requested changes done but except message destructuring
* fix: message destructuring and changed const to let for assign args in message when message undefined
* fix: lint error
* refactor: simplify to a one-liner
* fix: tslint error and changed let to const
* fix: checked suffux and prefix exists or not by func
* refactor
* feat(): support printf-like formatting
* fix(test): removed one code comment
* fix(#24): Print stringified and colorized objects
* refactor: requested changes done but except message destructuring
* fix: message destructuring and changed const to let for assign args in message when message undefined
* fix: lint error
* refactor: simplify to a one-liner
* fix: tslint error and changed let to const
* fix: checked suffux and prefix exists or not by func
* refactor
Is your feature request related to a problem? Please describe.
Cannot be used directly as a placement of the
console
object as string formatting is not supported:In this example
%s
is not replaced by the following arguments like it's withconsole.log
.Describe the solution you'd like
Add printf-like formatting for strings passed to any logger. Strings can be formatted with util.format().
Additionally the replaced values could be highlighted with a color specific to each logger. For example
signale.success('Operation %s successful', 'xyz');
could write✔ success Operation xyz successful
withxyz
in green as it is the color associated with thesuccess
logger.Additional context
Possible implementation to use:
The text was updated successfully, but these errors were encountered: