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'd really like to be able to use the autoLogging feature, but I want separate log entries for requests vs. responses (ie. I'd like to log onRequest and a separate log onAfterResponse).
What is the feature you are proposing to solve the problem?
Why? Bun still has some bugs which cause my app to crash or go into infinite loops from time-to-time. This means no log is recorded at to capture what request was made to cause the crash since onAfterResponse never has a chance to fire. Having a separate log created onRequest would ensure I can reliably track down which request caused the problem.
Perhaps an option like:
logger({autoLogging: true,autoLoggingPlacement: ['onAfterResponse'],// This would be the default (current behaviour)autoLoggingPlacement: ['onRequest','onAfterResponse']// This is what I would use})
What alternatives have you considered?
I understand that I can accomplish this myself by turning off autoLogging and adding the ctx.log.*() calls manually myself, but it would be nice if elysia-logger support this behaviour out-of-the-box.
The text was updated successfully, but these errors were encountered:
What is the problem this feature would solve?
I'd really like to be able to use the
autoLogging
feature, but I want separate log entries for requests vs. responses (ie. I'd like to logonRequest
and a separate logonAfterResponse
).What is the feature you are proposing to solve the problem?
Why? Bun still has some bugs which cause my app to crash or go into infinite loops from time-to-time. This means no log is recorded at to capture what request was made to cause the crash since
onAfterResponse
never has a chance to fire. Having a separate log createdonRequest
would ensure I can reliably track down which request caused the problem.Perhaps an option like:
What alternatives have you considered?
I understand that I can accomplish this myself by turning off
autoLogging
and adding thectx.log.*()
calls manually myself, but it would be nice ifelysia-logger
support this behaviour out-of-the-box.The text was updated successfully, but these errors were encountered: