Skip to content

Commit 1b1a57f

Browse files
committed
Update documentation & licence
1 parent 0f78fe0 commit 1b1a57f

File tree

4 files changed

+74
-5
lines changed

4 files changed

+74
-5
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
[Unreleased]: https://github.com/digipolisantwerp/authz_module_nodejs/compare/v0.0.4...HEAD
88
## [Unreleased] - yyyy-mm-dd
99

10+
[0.1.0]: https://github.com/digipolisantwerp/log_module_nodejs/tree/v0.1.0
11+
## [0.1.0] - 2021-12-17
12+
13+
- Updated documentation for release
1014

1115
[0.0.6]: https://github.com/digipolisantwerp/log_module_nodejs/tree/v0.0.6
1216
## [0.0.6] - 2021-12-16

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 Digipolis Antwerpen
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+41-3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Log helper which converts default logs to indexable json log.
1919
* [Configuration](#configuration)
2020
* [Logging](#logging)
2121
* [Running the tests](#running-the-tests)
22+
* [Dependencies](#dependencies)
2223
* [Versioning](#versioning)
2324
* [Authors](#authors)
2425
* [License](#license)
@@ -40,12 +41,14 @@ $ yarn add @digipolis/log
4041

4142
## Configuration
4243

43-
##### Params:
44+
### Params:
4445
| Param | Description | Values |
4546
| :--- | :--- | :--- |
4647
| ***type*** *(optional)* | Set logging mode | **log** (default) / **json** / **text** |
4748
| ***override*** *(optional)* | Set to override given console (default) | **true** / **false** (default) |
4849

50+
## Examples
51+
4952
##### Example:
5053
```javascript
5154
const digipolisLogger = require('@digipolis/log');
@@ -80,9 +83,8 @@ type: 'log' -> {"message":"hello","timestamp":"2021-12-01T09:45:56.515Z","type":
8083

8184
```
8285

83-
## Logging
8486

85-
#### Examples
87+
#### output examples
8688
```javascript
8789

8890
// type: json
@@ -154,3 +156,39 @@ console.log({ message: 'logmessage2', timestamp: 'timestamp123', extra_param1: "
154156
*/
155157
```
156158

159+
160+
## Running the tests
161+
162+
Run the tests in this repo:
163+
164+
```bash
165+
$ npm run test
166+
$ npm run coverage
167+
```
168+
## Dependencies
169+
170+
none.
171+
172+
## Versioning
173+
174+
We use [SemVer](http://semver.org/)
175+
176+
for versioning. For the released version check changelog / tags
177+
178+
## Contributing
179+
180+
Pull requests are always welcome, however keep the following things in mind:
181+
182+
- New features (both breaking and non-breaking) should always be discussed with the [repo's owner](#support). If possible, please open an issue first to discuss what you would like to change.
183+
- Fork this repo and issue your fix or new feature via a pull request.
184+
- Please make sure to update tests as appropriate. Also check possible linting errors and update the CHANGELOG if applicable.
185+
186+
## Authors
187+
188+
* Olivier Van den Mooter (<olivier.vandenmooter@digipolis.be>) - Initial work - [Vademo](https://github.com/vademo)
189+
190+
See also the list of [contributors](https://github.com/digipolisantwerp/authz_module_nodejs/graphs/contributors) who participated in this project.
191+
192+
## License
193+
194+
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
{
22
"name": "@digipolis/log",
33
"version": "0.0.6",
4-
"description": "a logging tool for digipolis kibana logging",
4+
"keywords": [
5+
"digipolis",
6+
"antwerpen",
7+
"log",
8+
"logger"
9+
],
10+
"description": "A logging tool for Digipolis kibana logging",
511
"main": "lib/index.js",
612
"scripts": {
713
"start": "nodemon ./example/index.js",
@@ -15,7 +21,7 @@
1521
"url": "https://github.com/digipolisantwerp/log_module_nodejs.git"
1622
},
1723
"author": "Olivier Van den Mooter",
18-
"license": "ISC",
24+
"license": "MIT",
1925
"devDependencies": {
2026
"chai": "^4.3.4",
2127
"chai-json-schema": "^1.5.1",

0 commit comments

Comments
 (0)