909 B
909 B
Storybook Action Logger
A visual element to show action logs in Storybook demos sb-action-logger.
This is a demonstrative tool, not a debugging tool (although it may help initially). If you try logging complex values such as arrays, objects or promises, you should expect to get only the string interpretation as the output in this logger.
Live Demo/Documentation
See our storybook for a live demo and API documentation
Installation
npm i @lion/helpers
Usage
<script type="module">
import '@lion/helpers/sb-action-logger/sb-action-logger.js';
</script>
<sb-action-logger></sb-action-logger>
Then, with the sb-action-logger instance selected, call the log method on it.
myActionLoggerInstance.log('Hello, World!');