Skip to content
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

Closed
wvffle opened this issue May 27, 2018 · 1 comment
Closed

Print stringified and colorized objects #24

wvffle opened this issue May 27, 2018 · 1 comment
Labels
feature request Request for a new feature

Comments

@wvffle
Copy link

wvffle commented May 27, 2018

Is your feature request related to a problem? Please describe.
Right now signale cannot log plain objects stringified as JSON:

signale.success({ test: 123 }) // => ✔  success   
signale.success({ test: 123 }, { test: 123 }) // => ✔  success   [object Object] [object Object]

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:

✔  success
     test: 123
     server:
       port: 8080

This feature would break messageObj based logs but I think that we can use scopes instead

rjoydip-zz pushed a commit to rjoydip-zz/signale that referenced this issue May 27, 2018
@klaudiosinani klaudiosinani added the feature request Request for a new feature label May 27, 2018
jordrake added a commit to jordrake/signale that referenced this issue May 30, 2018
@Mayurkoli
Copy link

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 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
Labels
feature request Request for a new feature
Projects
None yet
Development

No branches or pull requests

3 participants