Allow for logging additional data with an action
See original GitHub issueSo current action API does not allow for logging additional (dynamic) data. When i expand an action in the “Actions” tab, i always see isTrusted: true
(using @storybook/web-components
here).
Some use cases:
- Log
event.detail
in case ofCustomEvent
s emitted from my web components (make this work automatically ifdetail
is present?) - Log some component state as part of the event (whether a checkbox is checked as part of the
change
event) - Event properties (whether or not it bubbles, is cancellable or is composed (crosses shadow DOM boundary))
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Advanced Logging for IIS - Custom Logging
In the Actions pane, click Edit Logging Fields to open the Edit Logging Fields dialog box. The dialog box displays the logging fields...
Read more >Exceptional : Adding Log Data
It's very useful for having a single place to handle adding additional data based on the command type.
Read more >Logging HOWTO — Python 3.11.1 documentation
To log variable data, use a format string for the event description message and append the variable data as arguments. For example: import...
Read more >Logging or ignoring rule actions
If the Allow action is selected, no other actions can be added to the rule. Log Only: Log ... Update the counter but...
Read more >Python Logging Guide - Best Practices and Hands-on ...
Log data is often a log message, which is a string, along with some extra data to be logged. Often, the logging API...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Why not just define a custom action, something like:
Or even:
@shilman I’ve verified that it works great: