readme
This commit is contained in:
16
README.md
16
README.md
@ -14,27 +14,27 @@ Usage
|
|||||||
-----
|
-----
|
||||||
From the folder you wish to serve, run:
|
From the folder you wish to serve, run:
|
||||||
```sh
|
```sh
|
||||||
$ ws [port]
|
$ ws [--port|-p <port>] [--log-format|-p dev|default|short|tiny]
|
||||||
```
|
```
|
||||||
The `port` arg is optional, the default is 8000.
|
The default `port` and `log-format` are `8000` and `dev`, respectively.
|
||||||
|
|
||||||
Use with Logstalgia
|
Use with Logstalgia
|
||||||
===================
|
===================
|
||||||
The `default` log format is compatible with [logstalgia](http://code.google.com/p/logstalgia/).
|
The `default` log-format is compatible with [logstalgia](http://code.google.com/p/logstalgia/).
|
||||||
|
|
||||||
Write your log output to disk:
|
If you wrote your log output to disk, like so:
|
||||||
```sh
|
```sh
|
||||||
$ ws --logger default > web.log
|
$ ws --log-format default > web.log
|
||||||
```
|
```
|
||||||
|
|
||||||
Then visualise in logstalgia:
|
Then you could visualise in logstalgia:
|
||||||
```sh
|
```sh
|
||||||
$ logstalgia web.log
|
$ logstalgia web.log
|
||||||
```
|
```
|
||||||
|
|
||||||
Or pipe directly into logstalgia for real-time visualisation:
|
Alternatively, pipe directly from ws into logstalgia for real-time visualisation:
|
||||||
```sh
|
```sh
|
||||||
$ ws --logger default | logstalgia -
|
$ ws --log-format default | logstalgia -
|
||||||
```
|
```
|
||||||
|
|
||||||
[](http://githalytics.com/75lb/local-web-server)
|
[](http://githalytics.com/75lb/local-web-server)
|
||||||
|
Reference in New Issue
Block a user