@zwodder/web-multi-logger
A helper utility for wrapping async functions in an ora
Last updated a year ago by zwodder .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @zwodder/web-multi-logger 
SYNC missed versions from official npm registry.

Web Multi Logger

Display multiple streams of logs in one window

This module allows you to pipe multiple logically separated streams of logs into multiple visually separated views in a web console. It comes with full ANSI support so you can pipe anything that would work in a Terminal into this tool as well.

Usage

import Logger from '@zwodder/web-multi-logger';

const logger = new Logger();

const serverTab = logger.createTab('server');
const frontEndTab = logger.createTab('front_end');

runServerWithLogger(serverTab);
runFrontEndWithLogger(frontEndTab);

// Navigate to http://localhost:9000 in your browser

Current Tags

  • 6.0.0-beta.31                                ...           latest (a year ago)

1 Versions

  • 6.0.0-beta.31                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 3
Dependencies (3)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2017 © taobao.org |