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

Add clean log level #4

Closed
vladshcherbin opened this issue May 17, 2018 · 2 comments
Closed

Add clean log level #4

vladshcherbin opened this issue May 17, 2018 · 2 comments
Labels
enhancement New feature or request feature request Request for a new feature

Comments

@vladshcherbin
Copy link

Is your feature request related to a problem? Please describe.
It would be great to have an option for a clean logger method, without any labels out of the box. It is useful when you want clean message (for code frame for example) but don't want to use console.log.

Describe the solution you'd like
Something like this (method name can be changed to a preferred one):

const file = await readFile(e.loc.file || e.id, 'utf8')
signale.clean(codeFrameColumns(file, { start: e.loc }, { highlightCode: true }))
@klaudiosinani klaudiosinani added enhancement New feature or request feature request Request for a new feature labels May 18, 2018
@klaudiosinani
Copy link
Owner

Thank you for taking the time to suggest it : )

@vladshcherbin
Copy link
Author

@klauscfhq awesome, thank you! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature request Request for a new feature
Projects
None yet
Development

No branches or pull requests

2 participants