Web-component for logging
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.settings
.gitignore
.project
LICENSE
README.md
bower.json
console-log.html
demo.html
preview.png

README.md

console-log

Web-component for logging. It is especially useful to debug data binds. It supports both simple strings and complex objects, which can be inspected in the console window.

Demo

Please see the demo page.

Usage

Hello world:

<console-log log="Hello World"> </console-log>

Complex objects:

<template is="dom-repeat" items='["Bob", "Sally"]'>
    <console-log log="{{item}}"> </console-log>
</template>

Log levels:

<console-log log="log"></console-log>
<console-log info="info"></console-log>
<console-log warn="warn"></console-log>
<console-log error="error"></console-log>