Skip to content

Add BackedEnum Support to Activity::log() #1384

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

onairmarc
Copy link

This PR adds BackedEnum support to Activity::log(). I find this useful because I use this package in my billing system, where I log why a tenant's status has changed during automated processes. Most of these messages are identical strings, so I thought it would make sense to add support for BackedEnums.

If there are any changes or improvements you would like me to make, please let me know. 🤓

@buraksh
Copy link

buraksh commented Apr 19, 2025

@onairmarc What do you think of also adding BackedEnum support to ActivityLogger::event() method?

@onairmarc
Copy link
Author

onairmarc commented Apr 19, 2025

@onairmarc What do you think of also adding BackedEnum support to ActivityLogger::event() method?

That should probably be a separate PR since it deals with other functionality separate from the log message.

@onairmarc
Copy link
Author

@freekmurze Can this PR please get reviewed? Thanks! 🤓

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