Open amandesai01 opened 1 month ago
go ahead, give it a try.
@VenkyGitRep any updates? you still working? feel free to share your implementation via draft pr.
I've managed to get things running in my local yesterday. I had an interview last night, and had to pause work on this issue for a bit. I'll be working on setting up console today, will share an update by the evening.
@amandesai01 Can we have a quick chat somewhere?
you can join discord from readme.
@VenkyGitRep you want me to take over? or wanna give it a try?
Okay, go head. The changes I've made are in nuxt.config.ts - here I included [plugin](plugins: ['~/plugins/logger.ts'], // Consola logger) and login.ts file under plugins. I'll watch this PR, so I know what the right changes are.Thanks!
We don't want logger in frontend. You can refer parent issue.
You are on right path! you will have to create plugin in src/server/plugins
, and use it in src/server
. No frontend code shall need modification.
Wanna give it a try?
sure, I can chew on this later today. I think I can have this working. Thanks for the direction, I'll get back when I have some questions.
I've now submitted a PR.
@amandesai01 What do you think? I've submitted a new PR.
@VenkyGitRep changes are good so far, but we still need some research. We want logger to have a dynamic tag with request path. And when we log something, it should also log request path. This will help in debugging by helping us identify what exactly happened with the request. In order to do that, we would need to have a middleware inject a logger with the tag and then entire request context should have access to logger.
Problem statement is weird and I don't know if that is possible in Nitro yet. But a research on this is necessary.
@VenkyGitRep changes are good so far, but we still need some research. We want logger to have a dynamic tag with request path. And when we log something, it should also log request path. This will help in debugging by helping us identify what exactly happened with the request.
In order to do that, we would need to have a middleware inject a logger with the tag and then entire request context should have access to logger.
Problem statement is weird and I don't know if that is possible in Nitro yet. But a research on this is necessary.
Also for each request we would need to generate a unique id so while seeing the logs we will be able to understand the flow
Let's research on this, as this is the next target.
I cleared out assignees until we have strong implementation proposal.
I'd like to work on this issue. @amandesai01