Comparing version 2.0.0 to 2.0.1
@@ -1,78 +0,1 @@ | ||
{ | ||
"author": { | ||
"email": "gajus@gajus.com", | ||
"name": "Gajus Kuizinas", | ||
"url": "http://gajus.com" | ||
}, | ||
"ava": { | ||
"babel": "inherit", | ||
"require": [ | ||
"babel-register" | ||
] | ||
}, | ||
"bin": "./dist/bin/index.js", | ||
"dependencies": { | ||
"boolean": "^0.1.3", | ||
"chalk": "^2.1.0", | ||
"prettyjson": "^1.2.1", | ||
"split2": "^2.2.0", | ||
"sprintf-js": "^1.1.1", | ||
"ulid": "^1.0.0", | ||
"yargs": "^9.0.1" | ||
}, | ||
"description": "JSON logger for Node.js and browser.", | ||
"devDependencies": { | ||
"ava": "^0.22.0", | ||
"babel-cli": "^6.26.0", | ||
"babel-plugin-istanbul": "^4.1.4", | ||
"babel-plugin-transform-flow-comments": "^6.22.0", | ||
"babel-plugin-transform-flow-strip-types": "^6.22.0", | ||
"babel-plugin-transform-object-rest-spread": "^6.26.0", | ||
"babel-preset-env": "^1.6.0", | ||
"babel-register": "^6.26.0", | ||
"coveralls": "^2.13.1", | ||
"eslint": "^4.7.0", | ||
"eslint-config-canonical": "^9.3.1", | ||
"flow-bin": "^0.54.1", | ||
"flow-copy-source": "^1.2.1", | ||
"husky": "^0.14.3", | ||
"nock": "^9.0.14", | ||
"nyc": "^11.2.1", | ||
"semantic-release": "^7.0.2", | ||
"sinon": "^3.2.1" | ||
}, | ||
"engines": { | ||
"node": ">=8.0" | ||
}, | ||
"keywords": [ | ||
"log", | ||
"logger", | ||
"json" | ||
], | ||
"main": "./dist/log.js", | ||
"name": "roarr", | ||
"nyc": { | ||
"include": [ | ||
"src/**/*.js" | ||
], | ||
"instrument": false, | ||
"reporter": [ | ||
"text-lcov" | ||
], | ||
"require": [ | ||
"babel-register" | ||
], | ||
"sourceMap": false | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:gajus/roarr.git" | ||
}, | ||
"scripts": { | ||
"build": "rm -fr ./dist && NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps && flow-copy-source src dist", | ||
"generate-types": "babel-node ./src/bin/generate-types.js", | ||
"lint": "eslint ./src ./test && flow", | ||
"test": "NODE_ENV=test ava --serial --verbose" | ||
}, | ||
"version": "2.0.0" | ||
} | ||
{"author":{"email":"gajus@gajus.com","name":"Gajus Kuizinas","url":"http://gajus.com"},"ava":{"babel":"inherit","require":["babel-register"]},"bin":"./dist/bin/index.js","dependencies":{"boolean":"^0.1.3","chalk":"^2.3.0","prettyjson":"^1.2.1","split2":"^2.2.0","sprintf-js":"^1.1.1","ulid":"^2.2.1","yargs":"^10.0.3"},"description":"JSON logger for Node.js and browser.","devDependencies":{"ava":"^0.23.0","babel-cli":"^6.26.0","babel-plugin-istanbul":"^4.1.5","babel-plugin-transform-flow-comments":"^6.22.0","babel-plugin-transform-flow-strip-types":"^6.22.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.6.1","babel-register":"^6.26.0","coveralls":"^3.0.0","eslint":"^4.10.0","eslint-config-canonical":"^9.3.1","flow-bin":"^0.58.0","flow-copy-source":"^1.2.1","husky":"^0.14.3","nock":"^9.0.27","nyc":"^11.3.0","semantic-release":"^8.2.0","sinon":"^4.1.0"},"engines":{"node":">=8.0"},"keywords":["log","logger","json"],"main":"./dist/log.js","name":"roarr","nyc":{"include":["src/**/*.js"],"instrument":false,"reporter":["text-lcov"],"require":["babel-register"],"sourceMap":false},"repository":{"type":"git","url":"git@github.com:gajus/roarr.git"},"scripts":{"build":"rm -fr ./dist && NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps && flow-copy-source src dist","generate-types":"babel-node ./src/bin/generate-types.js","lint":"eslint ./src ./test && flow","test":"NODE_ENV=test ava --serial --verbose"},"version":"2.0.1"} |
@@ -180,3 +180,3 @@ # Roarr | ||
``` | ||
```bash | ||
ROARR_LOG=true node ./index.js | jq 'select(.context.logLevel > 40)' | ||
@@ -186,2 +186,11 @@ | ||
Combine it with `roarr pretty-print` to pretty-print a subset of the logs: | ||
```bash | ||
ROARR_LOG=true node ./index.js | jq -cM 'select(.context.logLevel > 40)' | ||
``` | ||
(Notice the use of `-cM` parameters to disable JSON colarization and formatting.) | ||
## Log message format | ||
@@ -188,0 +197,0 @@ |
522
61186
+ Addedcliui@4.1.0(transitive)
+ Addedulid@2.3.0(transitive)
+ Addedyargs@10.1.2(transitive)
+ Addedyargs-parser@8.1.0(transitive)
- Removedcliui@3.2.0(transitive)
- Removederror-ex@1.3.2(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhosted-git-info@2.8.9(transitive)
- Removedis-arrayish@0.2.1(transitive)
- Removedis-core-module@2.15.1(transitive)
- Removedload-json-file@2.0.0(transitive)
- Removednormalize-package-data@2.5.0(transitive)
- Removedparse-json@2.2.0(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedpath-type@2.0.0(transitive)
- Removedpify@2.3.0(transitive)
- Removedread-pkg@2.0.0(transitive)
- Removedread-pkg-up@2.0.0(transitive)
- Removedresolve@1.22.8(transitive)
- Removedsemver@5.7.2(transitive)
- Removedspdx-correct@3.2.0(transitive)
- Removedspdx-exceptions@2.5.0(transitive)
- Removedspdx-expression-parse@3.0.1(transitive)
- Removedspdx-license-ids@3.0.20(transitive)
- Removedstrip-bom@3.0.0(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedulid@1.1.1(transitive)
- Removedvalidate-npm-package-license@3.0.4(transitive)
- Removedyargs@9.0.1(transitive)
- Removedyargs-parser@7.0.0(transitive)
Updatedchalk@^2.3.0
Updatedulid@^2.2.1
Updatedyargs@^10.0.3