We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi @kutuluk,
Thanks for creating this useful lib. I want to give warn and error a prefix.
prefix.apply(log, { format(level, name, timestamp) { if (level == "error" || level == "warn") { return `[${level}]`; } return ""; } });
result:
[WARN] a warning text an info text [ERROR] an error text
Notice that the info level line has a leading space. how to remove it?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi @kutuluk,
Thanks for creating this useful lib. I want to give warn and error a prefix.
result:
Notice that the info level line has a leading space. how to remove it?
The text was updated successfully, but these errors were encountered: