@stoplight/prism-core
Advanced tools
Comparing version 3.2.0-beta.9 to 3.2.0-beta.10
import * as pino from 'pino'; | ||
import { levels } from 'pino'; | ||
declare function createLogger(name: string, overrideOptions?: pino.LoggerOptions, destination?: pino.DestinationStream): pino.Logger; | ||
export { levels as logLevels, createLogger }; | ||
export { createLogger }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const pino = require("pino"); | ||
const pino_1 = require("pino"); | ||
exports.logLevels = pino_1.levels; | ||
pino_1.levels.labels[10] = 'note'; | ||
pino_1.levels.values.note = 10; | ||
pino_1.levels.labels[11] = 'success'; | ||
pino_1.levels.values.success = 11; | ||
pino_1.levels.labels[12] = 'start'; | ||
pino_1.levels.values.start = 12; | ||
const lodash_1 = require("lodash"); | ||
function createLogger(name, overrideOptions = {}, destination) { | ||
const options = { | ||
...overrideOptions, | ||
const options = lodash_1.defaultsDeep(overrideOptions, { | ||
name, | ||
customLevels: { | ||
note: 10, | ||
success: 11, | ||
start: 12, | ||
success: 12, | ||
}, | ||
level: 'note', | ||
level: 'start', | ||
base: {}, | ||
timestamp: false, | ||
}; | ||
}); | ||
if (destination) | ||
@@ -26,0 +16,0 @@ return pino(options, destination); |
{ | ||
"name": "@stoplight/prism-core", | ||
"version": "3.2.0-beta.9", | ||
"version": "3.2.0-beta.10", | ||
"main": "dist/index.js", | ||
@@ -26,3 +26,3 @@ "types": "dist/index.d.ts", | ||
}, | ||
"gitHead": "3388d504cc463cafcf8e2fabf22368b0bac2b315" | ||
"gitHead": "9b8d0188f65fbc42ca43276d2faf5d6cb4519b86" | ||
} |
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
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
32789
473