Logger for Baobab inspired by redux-logger.
$ npm install --save baobab-logger
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'));
logger(cursor[, options])
Output informations grouped or not.
Default: false
console
implementation API or custom wrapped library for output.
Default: window.console
Log level type: log
, info
, warn
, error
.
Default: log
Released under the MIT license.
This logger is largely based on redux-logger licensed under the MIT license.