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
I was using very similar plugin for knex logging and decided to publish it or find a similar one. I found this package and tried it. It fits my needs, the only thing I miss is syntax highlighting, I have it in mine and it helps in reading queries.
Here is an example of a small query (top - this package, bottom - mine):
It helps even more with larger queries and also looks same way as in some sql clients, for example postico (I'm using it), same query:
So, the question is if you are okay with this feature? I can add a PR with it.
Thanks
The text was updated successfully, but these errors were encountered:
I'm planning to release new version with better logger configuration to give developers ability to pass any formatter that they want.
I don't want to blow up the library with syntax highlighting. But I keep in my mind a compromise solution to publish packages with some prebuilt formatting like plain or with syntax highlighting. I hope so much that I won't give up the idea 🙏.
@khmm12 it's almost possible to pass a custom logger here.
It returns format, colorized time and colorized query. For my needs I want clean time and query, without colors. I'll pass them to custom color function and receive it syntax highlighted.
Hey 👋
I was using very similar plugin for knex logging and decided to publish it or find a similar one. I found this package and tried it. It fits my needs, the only thing I miss is syntax highlighting, I have it in mine and it helps in reading queries.
Here is an example of a small query (top - this package, bottom - mine):
It helps even more with larger queries and also looks same way as in some sql clients, for example postico (I'm using it), same query:
So, the question is if you are okay with this feature? I can add a PR with it.
Thanks
The text was updated successfully, but these errors were encountered: