lit-log
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Lit Log

Simple way to log events to the DOM

npm Published on webcomponents.org

Install

yarn add lit-log

How to Use

Attribute Type Default Description
hidden boolean false Whether the element should be displayed
open boolean false Whether the log should be shown by default
entry any undefined Adds a new entry
<!-- 
  Import the element.

  The `module` query parameter expands "bare" imports to full unpkg.com urls.
  This means use of an import map isn't needed.
  @see https://unpkg.com#query-params
-->
<script type="module" src="//unpkg.com/lit-log/dist/esm/index.js?module"></script>

<lit-log
  open
  entry="first"
>
  <span slot="summary">Cool Logger</span>
</lit-log>

TODO add better log formats (Ideally it should be like console.log)

Readme

Keywords

none

Package Sidebar

Install

npm i lit-log

Weekly Downloads

2

Version

0.0.1

License

Apache-2.0

Unpacked Size

36.3 kB

Total Files

21

Last publish

Collaborators

  • mothepro