Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use custom logger in api middleware pipeline #52

Merged
merged 1 commit into from
Mar 13, 2024
Merged

Conversation

mrfelton
Copy link
Member

This pull request primarily focuses on improving the logging functionality in the src/server.tsx file. It introduces a new middlewareLogger function to provide more detailed logging and modifies the application middleware to use this new logger.

Here are the key changes:

  • src/server.tsx: A new middlewareLogger function has been introduced. This function takes in a message and an array of additional information, and logs it using the existing log instance. This allows for more detailed and flexible logging.
  • src/server.tsx: The middleware setup has been updated to use the new middlewareLogger function with the honoLogger middleware. This means that all requests passing through this middleware will now be logged using the new middlewareLogger, providing more detailed logs.

@mrfelton mrfelton self-assigned this Mar 13, 2024
@mrfelton mrfelton merged commit 07cfdc2 into master Mar 13, 2024
1 check passed
@mrfelton mrfelton deleted the feat/logger branch March 13, 2024 11:32
@mrfelton mrfelton added the type:enhancement Indicates new feature requests label Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Indicates new feature requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant