Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Apr 29, 2016
1 parent 8a36b70 commit 2e29c7f
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,23 +135,21 @@ console.log(acho.messages.info)

Establishing the loglevel is a good way to filter out undesired information from output. The available levels by default are:

- `error`: Display calls to `.error()` messages.
- `warn`: Display calls from `.error()`, `.warn()` messages.
- `success`: Display calls from `.error()`, `.warn()`, `success()` messages.
- `info`: Display calls from `.error()`, `.warn()`, `success()`, `info()` messages.
- `verbose`: Display calls from `.error()`, `.warn()`, `success()`, `info()`, `verbose()` messages.
- `debug`: Display calls from `.error()`, `.warn()`, `success()`, `info()`, `verbose()`, `debug()` messages.
- `silly`: Display calls from `.error()`, `.warn()`, `success()`, `info()`, `verbose()`, `debug()`, `silly()` messages.
- `fatal` : Display calls to `.fatal()` messages.
- `error` : Display calls to `.fatal()`, `.error()` messages.
- `warn` : Display calls from `.fatal()`, `.error()`, `.warn()` messages.
- `info` : Display calls from `.fatal()`, `.error()`, `.warn()`, `info()` messages.
- `debug` : Display calls from `.fatal()`, `.error()`, `.warn()`, `info()`, `debug()` messages.

Additionally exists two special levels:

- `silent`: Avoid all output.
- `all`: Allow print all message types.
- `muted` : Avoid all output.
- `all` : Allow print all message types.

The default log level is `all`. You can define it in the constructor:

```js
var acho = Acho({level: 'silly'})
var acho = Acho({level: 'debug'})
```

or at runtime:
Expand All @@ -177,7 +175,7 @@ But you can easily modify the output. For example, let's add a timestamp to each
```js
var acho = Acho({
color: true,
level: 'silly',
level: 'debug',

// Customize how to print the 'type' of each message
outputType: function(type) {
Expand Down

0 comments on commit 2e29c7f

Please sign in to comment.