-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Consider optional onRequest format hook #13
Comments
Sounds like a reasonable addition. Will focus on it once the stable version has been released. Are there any major/minor bugs you've encountered? |
I did encounter a bug when first using the sample for a custom logger. Your example logs to a file. I just copied & pasted what you had and ran it. This caused errors because the destination log file did not exist, which seemed a surprising error. I didn't chase that, I just removed the destination file config. I am liking your library very much. 👍 It's a needed option for the Elysia community. |
Implemented. Ready to publish |
Awesome! I’m away for the week but will check this out next week!
…On Sat, Mar 30, 2024 at 4:49 PM Nishant Aanjaney Jalan < ***@***.***> wrote:
Closed #13 <#13> as
completed via #19 <#19>.
—
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGT66OG5PFNFXXVGBH4RYLY24JLZAVCNFSM6AAAAABFI5IAM6VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSGMYDCNZRGYYTCMA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
Reported in #20 |
With my custom logging, I have an
onRequest
hook that logs start of request processing. This is handy in the case where Elysia (or a plugin) does something unexpected and the request does not make it all the way through toonResponse
. It would be convenient if there was an optionalformat
override foronRequest
, maybe by default it does nothing.This is a hybrid of what I am using and what I'd like to have.
The text was updated successfully, but these errors were encountered: