Skip to content

Commit

Permalink
Address vulnerabilities and update ReadMe
Browse files Browse the repository at this point in the history
  • Loading branch information
jjpaulino committed Feb 12, 2020
1 parent b484322 commit 22e5a7b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,19 @@ var loggerOne = clayLog.init({

Once you have a logging instance you're free to begin logging. Logging levels are the same as the default PinoJS levels:

- `info`
- `trace`
- `debug`
- `warn`
- `error`
| | | | | | | | |
|:-----------|-------|-------|------|------|-------|-------|---------:|
| **Level:** | trace | debug | info | warn | error | fatal | silent |
| **Value:** | 10 | 20 | 30 | 40 | 50 | 60 | Infinity |

The logging level is a *minimum* level based on the associated value of that level.

For instance if the logger level is `info` *(30)* then `info` *(30)*, `warn` *(40)*, `error` *(50)* and `fatal` *(60)* log methods will be enabled but the `trace` *(10)* and `debug` *(20)* methods, being less than 30, will not.

The `silent` logging level is a specialized level which will disable all logging,
there is no `silent` log method.

Table and description taken from [here](https://github.com/pinojs/pino/blob/master/docs/api.md#loggerlevel-string-gettersetter).

To use simply do the following:

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
"eslint": "^4.7.1",
"istanbul": "^0.4.5",
"mocha": "^5.2.0",
"sinon": "^3.3.0"
"sinon": "^8.1.1"
}
}

0 comments on commit 22e5a7b

Please sign in to comment.