Beano

A Pino inspired logger for the browser

Open the browser console to see the results of running the logger!

Install

import logger from 'beano';

Start logging

Run

logger.info({groupByMessage: true}, 'look at me!')

Create a child logger

const childLogger = logger.child('my_module');

Pass messages to the child logger

Run

childLogger.info({muyBeano: true}, 'is right');

Pass another message to the child logger

Run

childLogger.debug('something doesnt seem right...');

Create a child logger from a child logger

const evenMoreChildrenLogger = childLogger.child('my_sub_module');

Pass messages to the double nested child logger

Run

evenMoreChildrenLogger.info('im a double nested log message')