Hi, is there any way to add own logger to supertok...
# support-questions-legacy
i
Hi, is there any way to add own logger to supertokens to log requests (I am using middlleware)?
r
Hey!
You could make your own middleware and add that in front of ours. And your middleware logs request.
i
And can i expand supertokens middleware putting it into another middleware or smth like that?
r
Yea you can. But that’s the same as just adding your middleware in front of ours.
What exactly are you trying to achieve here? Maybe I’m misunderstanding
i
Ok, i will explain
I use pino-logger in my koa app
it logs only things, that i and to router with my own
and i use middleware from supertokens-node/framework/koa
so, my problem that pino-logger doesnt log requests which go by this middleware
i want to log every request)
ah, dawn
im fool
everything is ok now, thanks
4 Views