Skip to content

polovi/baobab-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logger for Baobab

Logger for Baobab inspired by redux-logger.

baobab-logger

Install

$ npm install --save baobab-logger

Usage

import Baobab from 'baobab';
import logger from 'baobab-logger';

const tree = new Baobab({
  palette: {
    colors: ['yellow', 'purple'],
    name: 'Glorious colors'
  }
});

logger(tree, { collapsed: true });
logger(tree.select('palette'));

Configuration

logger(cursor[, options])

Options

collapsed (Boolean)

Output informations grouped or not.

Default: false

logger (Object)

console implementation API or custom wrapped library for output.

Default: window.console

level (String)

Log level type: log, info, warn, error.

Default: log

License

Released under the MIT license.

Credits & Notes

This logger is largely based on redux-logger licensed under the MIT license.

About

Logger for baobab

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published