-
Notifications
You must be signed in to change notification settings - Fork 2
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
Sweep: refactor logger #12
Comments
Here's the PR! #13.⚡ Sweep Free Trial: I'm creating this ticket using GPT-4. You have 4 GPT-4 tickets left for the month and 2 for the day. For more GPT-4 tickets, visit our payment portal.
Actions (click)
Step 1: 🔎 SearchingI found the following snippets in your repository. I will now analyze these snippets and come up with a plan. Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description.Step 2: ⌨️ Coding
• Refactor the getLogger function to return an event-based logger. This could be done by using an event emitter. The logger should emit an event whenever a log message is generated.
• Define a set of events that the logger can emit. These could include events for different log levels (e.g., DEBUG, INFO, WARN, ERROR).
• Import the logger events from "../../events/loggerEvents". Step 3: 🔁 Code ReviewHere are my self-reviews of my changes at Here is the 1st review Hi there, great start on implementing the event-based logger system. Here are a few suggestions to improve your code: I finished incorporating these changes. 🎉 Latest improvements to Sweep:
💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. |
- main action uncaught error {
"action": "issueCreatedCallback"
} |
the logger system is pretty broken. we need to be able to have it be events based so that its easier to use. its accessible on the runtime.logger object in most places
Checklist
src/bindings.ts
✅ Commit6e6ba24
src/events/loggerEvents.ts
✅ Commit017b09b
src/handlers/shared/handler.ts
The text was updated successfully, but these errors were encountered: