Skip to content

nhnb/console-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>