Skip to content

Commit

Permalink
Merge pull request #21 from MinimaHQ/trace
Browse files Browse the repository at this point in the history
Add Trace level
  • Loading branch information
Alex Fedoseev authored Sep 7, 2020
2 parents 795258f + e97f187 commit 7a9ba29
Show file tree
Hide file tree
Showing 6 changed files with 515 additions and 37 deletions.
3 changes: 3 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# History

## UNRELEASED
- Add `Trace` level.

## 1.2.0
- Make logging event polymorphic in `BrowserLogger` and `NodeLogger`.

Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ Then add it to `bsconfig.json`:
PPX is highly recommended but optional (read details below).

## Usage
There are 4 log levels:
There are 5 log levels:
- `trace`
- `debug`
- `info`
- `warn`
Expand Down Expand Up @@ -91,9 +92,10 @@ BS_LOG=warn bsb -clean-world -make-world

Available `BS_LOG` values:
- `*`: log everything
- `debug`: basically, the same as `*`
- `info`: log everything except `debug` level messages
- `warn`: log `warn` & `error` messages
- `trace`: basically, the same as `*`
- `debug`: log everything except `trace` level messages
- `info`: log everything except `trace` & `debug` level messages
- `warn`: log `warn` & `error` messages only
- `error`: log `error` messages only
- `off`: don't log anything

Expand Down
Loading

0 comments on commit 7a9ba29

Please sign in to comment.