You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We welcome any contributions that can help make this a more useful repository inner-source. Contributions can include, but are not limited to:
9
+
10
+
- Documentation improvements
11
+
- Creating issues for bugs and participating when the solution/fix needs to be tested
12
+
- Pull Requests for features, fixes, etc.
13
+
14
+
## Formatting Commit Messages
15
+
16
+
This repository uses conventional commits to format commit messages. This allows us to automatically generate changelogs and release notes. Please see [this link](https://www.conventionalcommits.org/en/v1.0.0/) for more information on how to format your commit messages.
17
+
18
+
Specifically, we use the following format:
19
+
20
+
-`feat: <description>` for new features
21
+
-`fix: <description>` for bug fixes
22
+
-`chore: <description>` for changes that don't affect the codebase
23
+
24
+
One of those should be the first line in your commit message. If you need to add more detail, you can add a blank line and then add more detail.
| logLevel | `String` | The minimum severity level to log. [See Log Levels](#log-levels) | `info`
20
+
| metadata | `Object` | Any extra data you want included in your logging, like what service this is | `{}`
21
+
| stderrLevels | `Array`| Which log levels should be logged to `stderr` instead of `stdout` | `[]`
22
22
23
23
```javascript
24
24
const { createLogger } =require('node-logger');
@@ -67,3 +67,9 @@ This supports the following log levels, in order of decreasing severity:
67
67
If you create a logger with the log level `info` (default), it will log all outputs that are at least an `info` level severity, which would be everything except `debug`.
68
68
69
69
If you create a logger with the log level `error`, it will only log messages that are `error`, `crit`, `alert`, or `emerg`.
70
+
71
+
## Local development
72
+
73
+
To work on this locally, clone it and run `npm install`. You should be good to go.
74
+
75
+
Be sure to read CONTRIBUTING.md for guidelines on contributing to this repo.
0 commit comments