-
Notifications
You must be signed in to change notification settings - Fork 119
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
feat: Support slog Logger #155
Conversation
I think the error in staticcheck is because we're specifying Go 1.18 as the minimum version, but
|
But |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the usage of logging functions needs correcting, though I question if we're doing the right thing. The whole point of structured logging is to provided logs in a structured format, and I think we're still trying to use it as an unstructured logger which doesn't make much sense.
Oh so it is, let me look at the action a bit more and see why it's not liking that then. |
As for your comment on the logging, I am not really doing anything special other than pass the arguments to the The default Here are some examples when I was testing:
And here's some nonsense tests with a Text Handler:
|
Try rebasing on |
My point is that this change doesn't take full advantage of slog, and I think if we're going to support it we should lean into it more. Take for instance the
Of course, this means we're committing to slog since the log module (or anything like it) wont output that properly. If we want to support both, we'll need to do some extra logic to ensure we're properly formatting logs regardless of whether they're expected to be structured or not. |
Ah! Now I understand your point. Thanks. Will clean up. |
Convert BlockID to InteractionID field into the InteractionDefinition struct, and add the necessary dispatch mechanisms to handle the following interactions: - shortcut - message_actions - view_submission - view_closed Add Interaction type to interaction definition
Convert BlockID to InteractionID field into the InteractionDefinition struct, and add the necessary dispatch mechanisms to handle the following interactions: - shortcut - message_actions - view_submission - view_closed Add Interaction type to interaction definition
Convert BlockID to InteractionID field into the InteractionDefinition struct, and add the necessary dispatch mechanisms to handle the following interactions: - shortcut - message_actions - view_submission - view_closed Add Interaction type to interaction definition
How do you like the changes now? |
Moved to github.com/slack-io/slacker |
This should take care of #148