New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@voiceflow/logger

Package Overview
Dependencies
Maintainers
26
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@voiceflow/logger - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

build/detailed.logger.d.ts

125

package.json
{
"name": "@voiceflow/logger",
"description": "Common logger for Voiceflow backend microservices",
"version": "1.0.0",
"version": "1.0.1",
"author": "Frank Gu <frank@voiceflow.com>",
"bugs": {
"url": "https://github.com/voiceflow/logger/issues"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"dependencies": {
"express-pino-logger": "^4.0.0",
"pino": "^5.14.0"
"colorette": "2.0.19",
"lodash.merge": "4.6.2",
"pino": "8.17.2",
"pino-http": "8.6.1",
"pino-pretty": "9.4.1",
"ts-pattern": "^4.0.5"
},
"devDependencies": {
"@commitlint/cli": "^8.0.0",
"@commitlint/config-conventional": "^8.0.0",
"@voiceflow/commitlint-config": "^1.0.1",
"@voiceflow/eslint-config": "^2.0.4",
"@voiceflow/git-branch-check": "^1.0.2",
"@voiceflow/prettier-config": "^1.0.4",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"codacy-coverage": "^3.4.0",
"commitizen": "^3.1.1",
"cz-conventional-changelog": "2.1.0",
"eslint": "^6.0.1",
"fixpack": "^2.3.1",
"husky": "^3.0.0",
"jest": "^24.8.0",
"lint-staged": "^9.2.0",
"mocha": "^6.1.4",
"nyc": "^14.1.1",
"prettier": "^1.18.2",
"prettier-eslint-cli": "^5.0.0",
"prettier-stylelint": "^0.4.2",
"pretty-quick": "^1.11.1",
"semantic-release": "^15.13.18",
"sinon": "^7.3.2"
"@commitlint/cli": "17.1.2",
"@istanbuljs/nyc-config-typescript": "1.0.2",
"@types/chai": "4.3.3",
"@types/lodash.merge": "^4.6.7",
"@types/mocha": "9.1.1",
"@voiceflow/commitlint-config": "2.0.0",
"@voiceflow/eslint-config": "7.0.0",
"@voiceflow/git-branch-check": "1.4.0",
"@voiceflow/prettier-config": "1.2.1",
"@voiceflow/semantic-release-config": "1.1.0",
"@voiceflow/tsconfig": "1.4.8",
"chai": "4.3.6",
"commitizen": "4.2.5",
"cz-conventional-changelog": "^3.3.0",
"depcheck": "^1.4.3",
"eslint": "8.23.1",
"eslint-output": "^3.0.1",
"fixpack": "^4.0.0",
"husky": "8.0.1",
"istanbul": "^0.4.5",
"lint-staged": "13.0.3",
"mocha": "10.0.0",
"nyc": "^15.1.0",
"prettier": "2.7.1",
"ts-mocha": "10.0.0",
"tsc-alias": "1.7.0",
"typescript": "4.8.3"
},
"files": [
"lib/**/*",
"*.js"
"build/"
],
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged",
"pre-push": "git-branch-check"
}
},
"homepage": "https://github.com/voiceflow/logger#readme",
"keywords": [
"voiceflow"
],
"license": "ISC",
"lint-staged": {
"package.json": [
"fixpack",
"git add"
],
"**/*.js": [
"eslint --fix",
"prettier-eslint --write",
"git add"
]
},
"main": "index.js",
"main": "build/main.js",
"prettier": "@voiceflow/prettier-config",
"release": {
"branch": "production"
},
"repository": "git@github.com:voiceflow/logger.git",
"scripts": {
"commit": "git-cz",
"integration": "mocha --use_strict --exit \"tests/**/*.it.js\"",
"lint": "eslint \"**/*.js\" --fix",
"lint:quiet": "yarn lint -- --quiet",
"prepare": "fixpack",
"send-coverage": "cat ./coverage/lcov.info | codacy-coverage",
"test": "nyc mocha --use_strict --exit \"tests/**/*.unit.js\" \"tests/**/*.it.js\"",
"unit": "mocha --use_strict --exit \"tests/**/*.unit.js\"",
"update": "yarn install"
}
"build": "yarn clean && tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
"clean": "rimraf build",
"commit": "cz",
"eslint-output": "eslint-output",
"lint": "eslint '**/*.{js,ts}'",
"lint:output": "yarn run eslint-output --quiet \"**/*.{js,ts}\"",
"lint:report": "yarn lint:output",
"tdd": "yarn test --watch",
"test": "yarn test:run",
"test:dependencies": "depcheck",
"test:integration": "NODE_ENV=test nyc --report-dir nyc_coverage_integration ts-mocha --paths --config ./config/test/.mocharc.yml 'test/**/*.it.ts'",
"test:run": "NODE_ENV=test nyc ts-mocha --paths --config ./config/test/.mocharc.yml 'test/**/*.{unit,it}.ts'",
"test:single": "NODE_ENV=test ts-mocha --paths --config ./config/test/.mocharc.yml",
"test:unit": "NODE_ENV=test nyc --report-dir=nyc_coverage_unit ts-mocha --paths --config ./config/test/.mocharc.yml 'test/**/*.unit.ts'"
},
"types": "build/main.d.ts"
}

@@ -0,2 +1,26 @@

[![circle ci](https://circleci.com/gh/voiceflow/logger.svg?style=shield&circle-token=8c4e4ce8d04d87f16e903bd7e1ccab194a118262)](https://circleci.com/gh/voiceflow/logger)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=voiceflow_logger&metric=coverage)](https://sonarcloud.io/dashboard?id=voiceflow_logger)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=voiceflow_logger&metric=alert_status)](https://sonarcloud.io/dashboard?id=voiceflow_logger)
# logger
Logging package for unified logging features
A standardized package for logging built on `pino`.
## Usage
```ts
import { createLogger, LogLevel, LogFormat } from '@voiceflow/logger';
const logger = createLogger({ format: LogFormat.JSON, level: LogLevel.INFO });
const inlineLogger = createLogger({ format: LogFormat.INLINE, level: LogLevel.WARN });
const detailedLogger = createLogger({ format: LogFormat.DETAILED, level: LogLevel.TRACE });
logger.trace('this is a trace log');
logger.debug('this is a debug log');
logger.info('this is an info log');
logger.warn('this is a warning log');
logger.error('this is an error log');
logger.fatal('this is a fatal log');
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc