Skip to content

Commit

Permalink
docs(web-multi-logger): basic usage and README
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed May 15, 2018
1 parent 0d737ae commit 70801f6
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions packages/utils/web-multi-logger/README.md
Original file line number Diff line number Diff line change
@@ -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.