Skip to content
Permalink
Browse files

docs(web-multi-logger): basic usage and README

  • Loading branch information
MarshallOfSound committed May 15, 2018
1 parent 0d737ae commit 70801f63114f2b4636b84723973f5accca824906
Showing with 24 additions and 0 deletions.
  1. +24 −0 packages/utils/web-multi-logger/README.md
@@ -0,0 +1,24 @@
# 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

```js
import Logger from '@electron-forge/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
```

0 comments on commit 70801f6

Please sign in to comment.
You can’t perform that action at this time.