@adonisjs/logger
Advanced tools
Comparing version 4.1.5 to 5.0.0-0
@@ -1,2 +0,4 @@ | ||
export { Logger } from './src/Logger'; | ||
export { FakeLogger } from './src/FakeLogger'; | ||
export { Logger } from './src/logger.js'; | ||
export { targets } from './src/targets/main.js'; | ||
export { defineConfig } from './src/define_config.js'; | ||
export { transport, destination, multistream, stdSerializers, stdTimeFunctions, } from './src/pino.js'; |
@@ -1,15 +0,4 @@ | ||
"use strict"; | ||
/* | ||
* @adonisjs/logger | ||
* | ||
* (c) Harminder Virk <virk@adonisjs.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FakeLogger = exports.Logger = void 0; | ||
var Logger_1 = require("./src/Logger"); | ||
Object.defineProperty(exports, "Logger", { enumerable: true, get: function () { return Logger_1.Logger; } }); | ||
var FakeLogger_1 = require("./src/FakeLogger"); | ||
Object.defineProperty(exports, "FakeLogger", { enumerable: true, get: function () { return FakeLogger_1.FakeLogger; } }); | ||
export { Logger } from './src/logger.js'; | ||
export { targets } from './src/targets/main.js'; | ||
export { defineConfig } from './src/define_config.js'; | ||
export { transport, destination, multistream, stdSerializers, stdTimeFunctions, } from './src/pino.js'; |
111
package.json
{ | ||
"name": "@adonisjs/logger", | ||
"version": "4.1.5", | ||
"version": "5.0.0-0", | ||
"description": "Logger built on top of pino to be used by AdonisJs", | ||
"main": "build/index.js", | ||
"type": "module", | ||
"files": [ | ||
"build/adonis-typings", | ||
"build/providers", | ||
"build/src", | ||
@@ -13,11 +12,13 @@ "build/index.d.ts", | ||
], | ||
"exports": { | ||
".": "./build/index.js", | ||
"./types": "./build/src/types.js" | ||
}, | ||
"scripts": { | ||
"mrm": "mrm --preset=@adonisjs/mrm-preset", | ||
"pretest": "npm run lint", | ||
"test": "node -r @adonisjs/require-ts/build/register bin/test.ts", | ||
"clean": "del build", | ||
"test": "c8 npm run vscode:test", | ||
"clean": "del-cli build", | ||
"compile": "npm run lint && npm run clean && tsc", | ||
"build": "npm run compile", | ||
"commit": "git-cz", | ||
"release": "np --message=\"chore(release): %s\"", | ||
"release": "np", | ||
"version": "npm run build", | ||
@@ -27,3 +28,4 @@ "format": "prettier --write .", | ||
"lint": "eslint . --ext=.ts", | ||
"sync-labels": "github-label-sync --labels ./node_modules/@adonisjs/mrm-preset/gh-labels.json adonisjs/logger" | ||
"sync-labels": "github-label-sync --labels .github/labels.json adonisjs/logger", | ||
"vscode:test": "node --loader=ts-node/esm bin/test.ts" | ||
}, | ||
@@ -39,56 +41,31 @@ "keywords": [ | ||
"devDependencies": { | ||
"@adonisjs/mrm-preset": "^5.0.3", | ||
"@adonisjs/require-ts": "^2.0.13", | ||
"@commitlint/cli": "^17.1.2", | ||
"@commitlint/config-conventional": "^17.1.0", | ||
"@japa/assert": "^1.3.6", | ||
"@japa/expect-type": "^1.0.2", | ||
"@japa/run-failed-tests": "^1.1.0", | ||
"@japa/runner": "^2.2.2", | ||
"@japa/spec-reporter": "^1.3.2", | ||
"@swc/core": "^1.3.10", | ||
"@types/node": "^18.11.3", | ||
"commitizen": "^4.2.5", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"c8": "^7.12.0", | ||
"del-cli": "^5.0.0", | ||
"eslint": "^8.25.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-adonis": "^2.1.1", | ||
"eslint-plugin-adonis": "^3.0.3", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"github-label-sync": "^2.2.0", | ||
"husky": "^8.0.1", | ||
"mrm": "^4.1.13", | ||
"np": "^7.6.2", | ||
"pino-pretty": "^7.6.1", | ||
"pino-pretty": "^9.1.1", | ||
"prettier": "^2.7.1", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.8.4" | ||
}, | ||
"nyc": { | ||
"exclude": [ | ||
"test" | ||
], | ||
"extension": [ | ||
".ts" | ||
] | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"commit-msg": "node ./node_modules/@adonisjs/mrm-preset/validateCommit/conventional/validate.js" | ||
} | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "cz-conventional-changelog" | ||
} | ||
}, | ||
"np": { | ||
"contents": ".", | ||
"anyBranch": false | ||
}, | ||
"dependencies": { | ||
"@poppinss/utils": "^5.0.0", | ||
"@types/pino": "^6.3.12", | ||
"@poppinss/utils": "^6.0.0-1", | ||
"@types/pino": "^7.0.5", | ||
"abstract-logging": "^2.0.1", | ||
"pino": "^6.14.0" | ||
"pino": "^8.7.0" | ||
}, | ||
"directories": { | ||
"doc": "docs", | ||
"test": "test" | ||
}, | ||
"repository": { | ||
@@ -102,22 +79,2 @@ "type": "git", | ||
"homepage": "https://github.com/adonisjs/logger#readme", | ||
"adonisjs": { | ||
"exceptions": "./build/exceptions.json" | ||
}, | ||
"publishConfig": { | ||
"access": "public", | ||
"tag": "latest" | ||
}, | ||
"mrmConfig": { | ||
"core": true, | ||
"license": "MIT", | ||
"services": [ | ||
"github-actions" | ||
], | ||
"minNodeVersion": "14.15.4", | ||
"probotApps": [ | ||
"stale", | ||
"lock" | ||
], | ||
"runGhActionsOnWindows": false | ||
}, | ||
"eslintConfig": { | ||
@@ -152,3 +109,27 @@ "extends": [ | ||
"printWidth": 100 | ||
}, | ||
"commitlint": { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
}, | ||
"publishConfig": { | ||
"access": "public", | ||
"tag": "next" | ||
}, | ||
"np": { | ||
"message": "chore(release): %s", | ||
"tag": "next", | ||
"branch": "main", | ||
"anyBranch": false | ||
}, | ||
"c8": { | ||
"reporter": [ | ||
"text", | ||
"html" | ||
], | ||
"exclude": [ | ||
"tests/**" | ||
] | ||
} | ||
} |
@@ -1,39 +0,23 @@ | ||
<div align="center"> | ||
<img src="https://res.cloudinary.com/adonisjs/image/upload/q_100/v1558612869/adonis-readme_zscycu.jpg" width="600px"> | ||
</div> | ||
# @adonisjs/logger | ||
<br /> | ||
<div align="center"> | ||
<h3>AdonisJS Logger</h3> | ||
<p>AdonisJS logger built on top of <a href="http://getpino.io/#/">pino</a> for speed and minimal runtime overhead.</p> | ||
</div> | ||
[![gh-workflow-image]][gh-workflow-url] [![npm-image]][npm-url] ![][typescript-image] [![license-image]][license-url] [![synk-image]][synk-url] | ||
<br /> | ||
## Introduction | ||
AdonisJS Logger is built on top of [Pino](https://getpino.io/#/). Additionally, we have added support to create multiple named loggers, and make it easy to type-hint Logger as a container dependency. | ||
<div align="center"> | ||
## Official Documentation | ||
The documentation is available on the [AdonisJS website](https://docs.adonisjs.com/guides/logger) | ||
[![gh-workflow-image]][gh-workflow-url] [![npm-image]][npm-url] ![][typescript-image] [![license-image]][license-url] [![synk-image]][synk-url] | ||
## Contributing | ||
One of the primary goals of AdonisJS is to have a vibrant community of users and contributors who believes in the principles of the framework. | ||
</div> | ||
We encourage you to read the [contribution guide](https://github.com/adonisjs/.github/blob/main/docs/CONTRIBUTING.md) before contributing to the framework. | ||
<div align="center"> | ||
<h3> | ||
<a href="https://adonisjs.com"> | ||
Website | ||
</a> | ||
<span> | </span> | ||
<a href="https://docs.adonisjs.com/guides/logger"> | ||
Guides | ||
</a> | ||
<span> | </span> | ||
<a href="CONTRIBUTING.md"> | ||
Contributing | ||
</a> | ||
</h3> | ||
</div> | ||
## Code of Conduct | ||
In order to ensure that the AdonisJS community is welcoming to all, please review and abide by the [Code of Conduct](https://github.com/adonisjs/.github/blob/main/docs/CODE_OF_CONDUCT.md). | ||
<div align="center"> | ||
<sub>Built with ❤︎ by <a href="https://twitter.com/AmanVirk1">Harminder Virk</a> | ||
</div> | ||
## License | ||
AdonisJS logger is open-sourced software licensed under the [MIT license](LICENSE.md). | ||
@@ -40,0 +24,0 @@ [gh-workflow-image]: https://img.shields.io/github/workflow/status/adonisjs/logger/test?style=for-the-badge |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25
Yes
19450
22
361
1
38
1
+ Added@lukeed/ms@2.0.2(transitive)
+ Added@poppinss/utils@6.8.3(transitive)
+ Added@types/pino@7.0.5(transitive)
+ Added@types/pluralize@0.0.33(transitive)
+ Addedabort-controller@3.0.0(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbuffer@6.0.3(transitive)
+ Addedcase-anything@3.1.0(transitive)
+ Addedevent-target-shim@5.0.1(transitive)
+ Addedevents@3.3.0(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedpino@8.21.0(transitive)
+ Addedpino-abstract-transport@1.2.0(transitive)
+ Addedpino-std-serializers@6.2.2(transitive)
+ Addedprocess@0.11.10(transitive)
+ Addedprocess-warning@3.0.0(transitive)
+ Addedreadable-stream@4.5.2(transitive)
+ Addedreal-require@0.2.0(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsafe-stable-stringify@2.5.0(transitive)
+ Addedslash@5.1.0(transitive)
+ Addedsonic-boom@3.8.1(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedthread-stream@2.7.0(transitive)
- Removed@poppinss/file-generator@1.0.2(transitive)
- Removed@poppinss/utils@5.0.0(transitive)
- Removed@types/he@1.2.3(transitive)
- Removed@types/node@22.9.0(transitive)
- Removed@types/pino@6.3.12(transitive)
- Removed@types/pino-pretty@5.0.0(transitive)
- Removed@types/pino-std-serializers@4.0.0(transitive)
- Removedcamel-case@4.1.2(transitive)
- Removedcapital-case@1.0.4(transitive)
- Removedchange-case@4.1.2(transitive)
- Removedcolorette@2.0.20(transitive)
- Removedconstant-case@3.0.4(transitive)
- Removedcuid@2.1.8(transitive)
- Removeddateformat@4.6.3(transitive)
- Removeddot-case@3.0.4(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removedfast-copy@3.0.2(transitive)
- Removedfast-safe-stringify@2.1.1(transitive)
- Removedflatstr@1.0.12(transitive)
- Removedfs-readdir-recursive@1.1.0(transitive)
- Removedhe@1.2.0(transitive)
- Removedheader-case@2.0.4(transitive)
- Removedhelp-me@5.0.0(transitive)
- Removedjoycon@3.1.1(transitive)
- Removedkind-of@6.0.3(transitive)
- Removedlodash@4.17.21(transitive)
- Removedlower-case@2.0.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedms@2.1.3(transitive)
- Removedno-case@3.0.4(transitive)
- Removedonce@1.4.0(transitive)
- Removedparam-case@3.0.4(transitive)
- Removedpascal-case@3.1.2(transitive)
- Removedpath-case@3.0.4(transitive)
- Removedpino@6.14.0(transitive)
- Removedpino-abstract-transport@2.0.0(transitive)
- Removedpino-pretty@13.0.0(transitive)
- Removedpino-std-serializers@3.2.07.0.0(transitive)
- Removedprocess-warning@1.0.0(transitive)
- Removedpump@3.0.2(transitive)
- Removedrequire-all@3.0.0(transitive)
- Removedresolve-from@5.0.0(transitive)
- Removedsentence-case@3.0.4(transitive)
- Removedsnake-case@3.0.4(transitive)
- Removedsonic-boom@1.4.12.8.04.2.0(transitive)
- Removedstrip-json-comments@3.1.1(transitive)
- Removedtslib@2.8.1(transitive)
- Removedundici-types@6.19.8(transitive)
- Removedupper-case@2.0.2(transitive)
- Removedupper-case-first@2.0.2(transitive)
- Removedwrappy@1.0.2(transitive)
Updated@poppinss/utils@^6.0.0-1
Updated@types/pino@^7.0.5
Updatedpino@^8.7.0