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

[RFC] Implement new feature: Custom messages #166

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

saulvaldelvira
Copy link

@saulvaldelvira saulvaldelvira commented Jan 4, 2025

This PR adds an option to provide a custom function to write the message.

I've also fixed a small typo in one of the tests.

I haven't added any documentation yet. If the maintainers like the idea, I'll gladly document this.

Related issue: #54

Make setup_panic accept a function as a parameter, that will be called
to write the message. This function receives a Write reference, an
optional Path and the Metadata. If no function is provided, use the
original function "write_msg"
@epage
Copy link
Collaborator

epage commented Jan 4, 2025

In our contributing documentation, we ask for problems and solutions to be worked out in issues and to leave PRs for code review.

@saulvaldelvira
Copy link
Author

In our contributing documentation, we ask for problems and solutions to be worked out in issues and to leave PRs for code review.

Hello! Sorry for that.
Should I add an issue to discuss this, and link to the PR?

@epage
Copy link
Collaborator

epage commented Jan 7, 2025

You could post you use case and idea to #54, it seems related enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants