lion/packages/helpers/sb-action-logger
2020-04-29 10:05:06 +02:00
..
src feat(helpers): add simple mode to action logger 2020-01-17 16:34:52 +01:00
stories feat(helpers): add simple mode to action logger 2020-01-17 16:34:52 +01:00
test chore: apply prettier formatting changes 2020-04-29 10:05:06 +02:00
custom-elements.json feat(helpers): add simple mode to action logger 2020-01-17 16:34:52 +01:00
README.md feat(helpers): new package with several helpers 2020-01-13 13:58:03 +01:00

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!');