@cdm-logger/client
Advanced tools
Comparing version 5.0.7 to 7.0.2
173
lib/index.js
@@ -40,10 +40,30 @@ module.exports = | ||
/******/ if(!__webpack_require__.o(exports, name)) { | ||
/******/ Object.defineProperty(exports, name, { | ||
/******/ configurable: false, | ||
/******/ enumerable: true, | ||
/******/ get: getter | ||
/******/ }); | ||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); | ||
/******/ } | ||
/******/ }; | ||
/******/ | ||
/******/ // define __esModule on exports | ||
/******/ __webpack_require__.r = function(exports) { | ||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { | ||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
/******/ } | ||
/******/ Object.defineProperty(exports, '__esModule', { value: true }); | ||
/******/ }; | ||
/******/ | ||
/******/ // create a fake namespace object | ||
/******/ // mode & 1: value is a module id, require it | ||
/******/ // mode & 2: merge all properties of value into the ns | ||
/******/ // mode & 4: return value when already ns object | ||
/******/ // mode & 8|1: behave like require | ||
/******/ __webpack_require__.t = function(value, mode) { | ||
/******/ if(mode & 1) value = __webpack_require__(value); | ||
/******/ if(mode & 8) return value; | ||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; | ||
/******/ var ns = Object.create(null); | ||
/******/ __webpack_require__.r(ns); | ||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); | ||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); | ||
/******/ return ns; | ||
/******/ }; | ||
/******/ | ||
/******/ // getDefaultExport function for compatibility with non-harmony modules | ||
@@ -64,8 +84,14 @@ /******/ __webpack_require__.n = function(module) { | ||
/******/ | ||
/******/ | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 1); | ||
/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts"); | ||
/******/ }) | ||
/************************************************************************/ | ||
/******/ ([ | ||
/* 0 */ | ||
/******/ ({ | ||
/***/ "./src/client-logger.ts": | ||
/*!******************************!*\ | ||
!*** ./src/client-logger.ts ***! | ||
\******************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -76,6 +102,7 @@ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const Logger = __webpack_require__(2); | ||
const console_stream_1 = __webpack_require__(3); | ||
exports.makeLogger = exports.getLoggerOptions = exports.ClientLogger = exports.getConsoleStream = exports.getSettingsLevel = void 0; | ||
const Logger = __webpack_require__(/*! browser-bunyan */ "browser-bunyan"); | ||
const console_stream_1 = __webpack_require__(/*! ./console-stream */ "./src/console-stream.ts"); | ||
function getSettingsLevel(settings) { | ||
return settings.level || "info"; | ||
return settings.level || 'info'; | ||
} | ||
@@ -102,3 +129,3 @@ exports.getSettingsLevel = getSettingsLevel; | ||
if (!name) { | ||
throw Error("Cannot create LoggerOptions without a log name"); | ||
throw Error('Cannot create LoggerOptions without a log name'); | ||
} | ||
@@ -118,31 +145,15 @@ const options = { | ||
function makeLogger(name, ...streams) { | ||
const logName = typeof name === "object" ? name.constructor.toString().match(/class ([\w|_]+)/)[1] : name; | ||
const logName = typeof name === 'object' ? name.constructor.toString().match(/class ([\w|_]+)/)[1] : name; | ||
return Logger.createLogger(getLoggerOptions(logName, ...streams)); | ||
} | ||
exports.makeLogger = makeLogger; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xpZW50LWxvZ2dlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9jbGllbnQtbG9nZ2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEseUNBQXdDO0FBR3hDLHFEQUFpRDtBQUVqRCwwQkFBaUMsUUFBeUI7SUFDdEQsTUFBTSxDQUFDLFFBQVEsQ0FBQyxLQUFLLElBQUksTUFBTSxDQUFDO0FBQ3BDLENBQUM7QUFG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BYkQsNENBYUM7QUFFRCxvQkFBMkIsSUFBcUIsRUFBRSxHQUFHLE9BQU87SUFDeEQsTUFBTSxPQUFPLEdBQUcsT0FBTyxJQUFJLEtBQUssUUFBUSxHQUFHLElBQUksQ0FBQyxXQUFXLENBQUMsUUFBUSxFQUFFLENBQUMsS0FBSyxDQUFDLGlCQUFpQixDQUFDLENBQUMsQ0FBQyxDQUFDLEdBQUcsSUFBSSxDQUFBO0lBQ3pHLE1BQU0sQ0FBQyxNQUFNLENBQUMsWUFBWSxDQUFDLGdCQUFnQixDQUFDLE9BQU8sRUFBRSxHQUFHLE9BQU8sQ0FBQyxDQUFDLENBQUM7QUFDdEUsQ0FBQztBQUhELGdDQUdDIn0= | ||
/***/ }), | ||
/* 1 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(__webpack_require__(0)); | ||
var logger_1 = __webpack_require__(6); | ||
exports.logger = logger_1.logger; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxxQ0FBK0I7QUFDL0IsbUNBQWtDO0FBQXpCLDBCQUFBLE1BQU0sQ0FBQSJ9 | ||
/***/ }), | ||
/* 2 */ | ||
/***/ (function(module, exports) { | ||
module.exports = require("browser-bunyan"); | ||
/***/ }), | ||
/* 3 */ | ||
/***/ "./src/console-stream.ts": | ||
/*!*******************************!*\ | ||
!*** ./src/console-stream.ts ***! | ||
\*******************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -153,3 +164,4 @@ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const interfaces_1 = __webpack_require__(4); | ||
exports.ConsoleStream = void 0; | ||
const interfaces_1 = __webpack_require__(/*! ./interfaces */ "./src/interfaces/index.ts"); | ||
const REC_KEYS = ['level', 'name', 'msg', 'levelName', 'pid', 'time', 'v']; | ||
@@ -178,2 +190,3 @@ var nameFromLevel = {}; | ||
var loggerName = rec.childName ? rec.name + '/' + rec.childName : rec.name; | ||
// get level name and pad start with spacs | ||
var levelName = nameFromLevel[rec.level].toUpperCase(); | ||
@@ -204,2 +217,3 @@ levelName = Array(6 - levelName.length).join(' ') + levelName; | ||
var rest = Object.keys(others).length ? others : ''; | ||
/* eslint-disable no-console */ | ||
console.log('[%s:%s:%s:%s] %c%s%c: %s: %c%s', padZeros(rec.time.getHours(), 2), padZeros(rec.time.getMinutes(), 2), padZeros(rec.time.getSeconds(), 2), padZeros(rec.time.getMilliseconds(), 4), levelCss, levelName, defaultCss, rest.context || loggerName, msgCss, rec.msg, rest); | ||
@@ -209,6 +223,11 @@ } | ||
exports.ConsoleStream = ConsoleStream; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc29sZS1zdHJlYW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvY29uc29sZS1zdHJlYW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw2Q0FBNkY7QUFDN0YsTUFBTSxRQUFRLEdBQUcsQ0FBQyxPQUFPLEVBQUUsTUFBTSxFQUFFLEtBQUssRUFBRSxXQUFXLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxHQUFHLENBQUMsQ0FBQTtBQUUxRSxJQUFJLGFBQWEsR0FBRyxFQUFFLENBQUE7QUFDdEIsTUFBTSxDQUFDLElBQUksQ0FBQyx3QkFBVyxDQUFDLENBQUMsT0FBTyxDQUFDLFVBQVUsSUFBSTtJQUMzQyxhQUFhLENBQUMsd0JBQVcsQ0FBQyxJQUFJL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BRyxDQUFDLEtBQUssR0FBRyxrQkFBSyxDQUFDLENBQUMsQ0FBQztZQUMzQixRQUFRLEdBQUcsZ0JBQWdCLENBQUE7UUFDL0IsQ0FBQztRQUFDLElBQUksQ0FBQyxDQUFDO1lBQ0osUUFBUSxHQUFHLGNBQWMsQ0FBQTtRQUM3QixDQUFDO1FBRUQsSUFBSSxNQUFNLEdBQUcsSUFBSSxDQUFDLFFBQVEsRUFBRSxHQUFHLENBQUMsQ0FBQTtRQUNoQyxJQUFJLElBQUksR0FBUSxNQUFNLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxDQUFDLE1BQU0sR0FBRyxNQUFNLEdBQUcsRUFBRSxDQUFBO1FBR3hELE9BQU8sQ0FBQyxHQUFHLENBQUMsZ0NBQWdDLEVBQzVDLFFBQVEsQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLFFBQVEsRUFBRSxFQUFFLENBQUMsQ0FBQyxFQUFFLFFBQVEsQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLFVBQVUsRUFBRSxFQUFFLENBQUMsQ0FBQyxFQUNwRSxRQUFRLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxVQUFVLEVBQUUsRUFBRSxDQUFDLENBQUMsRUFBRSxRQUFRLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxlQUFlLEVBQUUsRUFBRSxDQUFDLENBQUMsRUFDM0UsUUFBUSxFQUFFLFNBQVMsRUFDbkIsVUFBVSxFQUFFLElBQUksQ0FBQyxPQUFPLElBQUksVUFBVSxFQUN0QyxNQUFNLEVBQUUsR0FBRyxDQUFDLEdBQUcsRUFBRSxJQUFJLENBQUMsQ0FBQTtJQUMxQixDQUFDO0NBQ0o7QUFyQ0Qsc0NBcUNDIn0= | ||
/***/ }), | ||
/* 4 */ | ||
/***/ "./src/index.ts": | ||
/*!**********************!*\ | ||
!*** ./src/index.ts ***! | ||
\**********************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -218,11 +237,25 @@ | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(__webpack_require__(5)); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW50ZXJmYWNlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLHVDQUFrQyJ9 | ||
__exportStar(__webpack_require__(/*! ./client-logger */ "./src/client-logger.ts"), exports); | ||
var logger_1 = __webpack_require__(/*! ./logger */ "./src/logger.ts"); | ||
Object.defineProperty(exports, "logger", { enumerable: true, get: function () { return logger_1.logger; } }); | ||
/***/ }), | ||
/* 5 */ | ||
/***/ "./src/interfaces/index.ts": | ||
/*!*********************************!*\ | ||
!*** ./src/interfaces/index.ts ***! | ||
\*********************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -232,3 +265,29 @@ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(__webpack_require__(/*! ./logger-settings */ "./src/interfaces/logger-settings.ts"), exports); | ||
/***/ }), | ||
/***/ "./src/interfaces/logger-settings.ts": | ||
/*!*******************************************!*\ | ||
!*** ./src/interfaces/logger-settings.ts ***! | ||
\*******************************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LEVEL_NAMES = exports.FATAL = exports.ERROR = exports.WARN = exports.INFO = exports.DEBUG = exports.TRACE = void 0; | ||
exports.TRACE = 10; | ||
@@ -248,6 +307,11 @@ exports.DEBUG = 20; | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9nZ2VyLXNldHRpbmdzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2ludGVyZmFjZXMvbG9nZ2VyLXNldHRpbmdzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBUWEsUUFBQSxLQUFLLEdBQUcsRUFBRSxDQUFBO0FBQ1YsUUFBQSxLQUFLLEdBQUcsRUFBRSxDQUFBO0FBQ1YsUUFBQSxJQUFJLEdBQUcsRUFBRSxDQUFBO0FBQ1QsUUFBQSxJQUFJLEdBQUcsRUFBRSxDQUFBO0FBQ1QsUUFBQSxLQUFLLEdBQUcsRUFBRSxDQUFBO0FBQ1YsUUFBQSxLQUFLLEdBQUcsRUFBRSxDQUFBO0FBQ1YsUUFBQSxXQUFXLEdBQUc7SUFDdkIsT0FBTyxFQUFFLGFBQUs7SUFDZCxPQUFPLEVBQUUsYUFBSztJQUNkLE1BQU0sRUFBRSxZQUFJO0lBQ1osTUFBTSxFQUFFLFlBQUk7SUFDWixPQUFPLEVBQUUsYUFBSztJQUNkLE9BQU8sRUFBRSxhQUFLO0NBQ2pCLENBQUEifQ== | ||
/***/ }), | ||
/* 6 */ | ||
/***/ "./src/logger.ts": | ||
/*!***********************!*\ | ||
!*** ./src/logger.ts ***! | ||
\***********************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -258,3 +322,4 @@ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const client_logger_1 = __webpack_require__(0); | ||
exports.logger = void 0; | ||
const client_logger_1 = __webpack_require__(/*! ./client-logger */ "./src/client-logger.ts"); | ||
const appName = (typeof process !== 'undefined' && process.env && process.env.APP_NAME) || 'FullStack'; | ||
@@ -264,6 +329,18 @@ const logLevel = (typeof process !== 'undefined' && process.env && process.env.LOG_LEVEL) || 'info'; | ||
exports.logger = logger; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9nZ2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2xvZ2dlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLG1EQUErQztBQUcvQyxNQUFNLE9BQU8sR0FBRyxDQUFDLE9BQU8sT0FBTyxLQUFLLFdBQVcsSUFBSSxPQUFPLENBQUMsR0FBRyxJQUFJLE9BQU8sQ0FBQyxHQUFHLENBQUMsUUFBUSxDQUFDLElBQUksV0FBVyxDQUFDO0FBQ3ZHLE1BQU0sUUFBUSxHQUFnQixDQUFDLE9BQU8sT0FBTyxLQUFLLFdBQVcsSUFBSSxPQUFPLENBQUMsR0FBRyxJQUFJLE9BQU8sQ0FBQyxHQUFHLENBQUMsU0FBUyxDQUFnQixJQUFHLE1BQU0sQ0FBQztBQUMvSCxNQUFNLE1BQU0sR0FBRyw0QkFBWSxDQUFDLE1BQU0sQ0FBQyxPQUFPLEVBQUUsRUFBRSxLQUFLLEVBQUUsUUFBUSxFQUFFLENBQUMsQ0FBQztBQUV4RCx3QkFBTSJ9 | ||
/***/ }), | ||
/***/ "browser-bunyan": | ||
/*!*********************************!*\ | ||
!*** external "browser-bunyan" ***! | ||
\*********************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports) { | ||
module.exports = require("browser-bunyan"); | ||
/***/ }) | ||
/******/ ]); | ||
/******/ }); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@cdm-logger/client", | ||
"version": "5.0.7", | ||
"version": "7.0.2", | ||
"description": "Universal - Logger", | ||
@@ -8,7 +8,7 @@ "main": "./lib/index.js", | ||
"scripts": { | ||
"prepublish": "npm run build", | ||
"build": "npm run build:clean && npm run build:lib", | ||
"prepublish": "yarn build", | ||
"build": "yarn build:clean && yarn build:lib", | ||
"build:clean": "rimraf lib", | ||
"build:lib": "webpack", | ||
"build:lib:watch": "npm run build:lib -- --watch", | ||
"build:lib:watch": "yarn build:lib -- --watch", | ||
"jest": "./node_modules/.bin/jest", | ||
@@ -45,12 +45,5 @@ "test": "jest", | ||
"dependencies": { | ||
"browser-bunyan": "^1.3.0", | ||
"browser-bunyan": "^1.6.3", | ||
"stream": "0.0.2" | ||
}, | ||
"devDependencies": { | ||
"jest": "^20.0.3", | ||
"rimraf": "^2.6.1", | ||
"ts-jest": "^20.0.4", | ||
"typescript": "^2.3.4", | ||
"webpack": "^3.4.1" | ||
}, | ||
"homepage": "https://github.com/cdmbase/cdm-logger", | ||
@@ -63,3 +56,4 @@ "repository": { | ||
"url": "https://github.com/cdmbase/cdm-logger/issues" | ||
} | ||
}, | ||
"gitHead": "d627635adf383dd9dc06bf4a0ce0869fa9e90c12" | ||
} |
Sorry, the diff of this file is not supported yet
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
0
9
328
27712
Updatedbrowser-bunyan@^1.6.3