-
-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Print stringified and colorized objects #24
Labels
feature request
Request for a new feature
Comments
rjoydip-zz
pushed a commit
to rjoydip-zz/signale
that referenced
this issue
May 27, 2018
jordrake
added a commit
to jordrake/signale
that referenced
this issue
May 30, 2018
I think there no problem |
klaudiosinani
pushed a commit
that referenced
this issue
Jun 9, 2018
* 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
klaudiosinani
added a commit
that referenced
this issue
Jun 9, 2018
klaudiosinani
pushed a commit
that referenced
this issue
Mar 15, 2019
* feat(): support printf-like formatting * fix(test): removed one code comment * fix(#24): Print stringified and colorized objects * feat(): type defination added and WIP * modify defination file * unknown reason * removed types * fix: misspelling * added config method * refactor: requested changes done but except message destructuring * remodified ts defination * xo ignore test folder * ignore ts generated js file * minor changes * minor ts definition * chnaged tsconfig lib es5 -> es6 * conflict resolve * rename `test` to `types`, move signale.d.ts inside `types` folder * remove `Map` and `Set` polyfills We no longer need them as we already base everything off of tsconfig * fix commonJS default export issue * fixed header comment, reodered commonjs exports Not sure if this ordering is necessary, but let's use it anyway. * whitespace * fixed gitignore * updated files on tsconfig.json * remove `export as namespace` declaration since no globals is exported * Added missing options from 1.2.0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Right now signale cannot log plain objects stringified as JSON:
Describe the solution you'd like
It would be nice if we can log stringified objects with colorized output like in
util.inspect
or even skip braces and colons to display something like:This feature would break
messageObj
based logs but I think that we can use scopes insteadThe text was updated successfully, but these errors were encountered: