koatty_logger
Advanced tools
Comparing version 2.1.4 to 2.1.6
@@ -0,0 +0,0 @@ /* |
@@ -5,2 +5,9 @@ # Changelog | ||
### [2.1.6](https://github.com/thinkkoa/koatty_logger/compare/v2.1.4...v2.1.6) (2024-10-31) | ||
### Bug Fixes | ||
* error ([387bb84](https://github.com/thinkkoa/koatty_logger/commit/387bb84653d085a3dfdbd728fc232a56e9f0a395)) | ||
### [2.1.4](https://github.com/thinkkoa/koatty_logger/compare/v2.1.2...v2.1.4) (2023-12-11) | ||
@@ -7,0 +14,0 @@ |
/*! | ||
* @Author: richen | ||
* @Date: 2023-12-11 15:48:01 | ||
* @Date: 2024-10-31 16:34:29 | ||
* @License: BSD (3-Clause) | ||
@@ -5,0 +5,0 @@ * @Copyright (c) - <richenlin(at)gmail.com> |
/*! | ||
* @Author: richen | ||
* @Date: 2023-12-11 15:47:49 | ||
* @Date: 2024-10-31 16:34:10 | ||
* @License: BSD (3-Clause) | ||
@@ -10,4 +10,4 @@ * @Copyright (c) - <richenlin(at)gmail.com> | ||
var helper = require('koatty_lib'); | ||
var util = require('util'); | ||
var helper = require('koatty_lib'); | ||
var winston = require('winston'); | ||
@@ -129,3 +129,3 @@ | ||
* @LastEditors: Please set LastEditors | ||
* @LastEditTime: 2023-08-30 15:32:08 | ||
* @LastEditTime: 2024-10-31 16:30:52 | ||
* @License: BSD (3-Clause) | ||
@@ -135,3 +135,3 @@ * @Copyright (c) - <richenlin(at)gmail.com> | ||
const DailyRotateFile = helper__namespace.safeRequire("winston-daily-rotate-file"); | ||
const { combine, timestamp, label, printf } = winston.format; | ||
const { combine, timestamp, printf } = winston.format; | ||
const LogLevelObj = { | ||
@@ -393,2 +393,3 @@ "debug": 7, | ||
// console.error(e.stack); | ||
this.logger.error(e.stack); | ||
return ""; | ||
@@ -426,2 +427,9 @@ } | ||
/* | ||
* @Description: | ||
* @Usage: | ||
* @Author: richen | ||
* @Date: 2021-12-18 20:03:31 | ||
* @LastEditTime: 2024-10-31 16:32:08 | ||
*/ | ||
//DefaultLogger | ||
@@ -428,0 +436,0 @@ const DefaultLogger = new Logger(); |
{ | ||
"name": "koatty_logger", | ||
"version": "2.1.4", | ||
"version": "2.1.6", | ||
"description": "Logger for koatty.", | ||
@@ -60,20 +60,22 @@ "scripts": { | ||
"devDependencies": { | ||
"@commitlint/cli": "^18.x.x", | ||
"@commitlint/config-conventional": "^18.x.x", | ||
"@commitlint/cli": "^19.x.x", | ||
"@commitlint/config-conventional": "^19.x.x", | ||
"@microsoft/api-documenter": "^7.x.x", | ||
"@microsoft/api-extractor": "^7.x.x", | ||
"@rollup/plugin-commonjs": "^28.0.1", | ||
"@rollup/plugin-json": "^6.x.x", | ||
"@types/jest": "^29.x.x", | ||
"@types/koa": "^2.x.x", | ||
"@types/node": "^20.x.x", | ||
"@typescript-eslint/eslint-plugin": "^6.x.x", | ||
"@typescript-eslint/parser": "^6.x.x", | ||
"conventional-changelog-cli": "^4.x.x", | ||
"@types/node": "^22.x.x", | ||
"@typescript-eslint/eslint-plugin": "^8.x.x", | ||
"@typescript-eslint/parser": "^8.x.x", | ||
"conventional-changelog-cli": "^5.x.x", | ||
"copyfiles": "^2.x.x", | ||
"del-cli": "^5.x.x", | ||
"eslint": "^8.x.x", | ||
"eslint-plugin-jest": "^27.x.x", | ||
"del-cli": "^6.x.x", | ||
"eslint": "^8.57.x", | ||
"eslint-plugin-jest": "^28.x.x", | ||
"husky": "^4.x.x", | ||
"jest": "^29.x.x", | ||
"jest-html-reporters": "^3.x.x", | ||
"reflect-metadata": "^0.x.x", | ||
"rollup": "^4.x.x", | ||
@@ -84,2 +86,3 @@ "rollup-plugin-typescript2": "^0.x.x", | ||
"ts-node": "^10.x.x", | ||
"tslib": "^2.x.x", | ||
"typescript": "^5.x.x" | ||
@@ -89,4 +92,5 @@ }, | ||
"koatty_lib": "^1.x.x", | ||
"koatty_logger": "file:", | ||
"tslib": "^2.x.x", | ||
"winston": "^3.11.0", | ||
"winston": "^3.15.0", | ||
"winston-daily-rotate-file": "^4.7.1" | ||
@@ -93,0 +97,0 @@ }, |
# koatty_logger | ||
Logger for koatty. |
{ | ||
"name": "koatty_logger", | ||
"version": "2.1.4", | ||
"version": "2.1.6", | ||
"description": "Logger for koatty.", | ||
@@ -60,20 +60,22 @@ "scripts": { | ||
"devDependencies": { | ||
"@commitlint/cli": "^18.x.x", | ||
"@commitlint/config-conventional": "^18.x.x", | ||
"@commitlint/cli": "^19.x.x", | ||
"@commitlint/config-conventional": "^19.x.x", | ||
"@microsoft/api-documenter": "^7.x.x", | ||
"@microsoft/api-extractor": "^7.x.x", | ||
"@rollup/plugin-commonjs": "^28.0.1", | ||
"@rollup/plugin-json": "^6.x.x", | ||
"@types/jest": "^29.x.x", | ||
"@types/koa": "^2.x.x", | ||
"@types/node": "^20.x.x", | ||
"@typescript-eslint/eslint-plugin": "^6.x.x", | ||
"@typescript-eslint/parser": "^6.x.x", | ||
"conventional-changelog-cli": "^4.x.x", | ||
"@types/node": "^22.x.x", | ||
"@typescript-eslint/eslint-plugin": "^8.x.x", | ||
"@typescript-eslint/parser": "^8.x.x", | ||
"conventional-changelog-cli": "^5.x.x", | ||
"copyfiles": "^2.x.x", | ||
"del-cli": "^5.x.x", | ||
"eslint": "^8.x.x", | ||
"eslint-plugin-jest": "^27.x.x", | ||
"del-cli": "^6.x.x", | ||
"eslint": "^8.57.x", | ||
"eslint-plugin-jest": "^28.x.x", | ||
"husky": "^4.x.x", | ||
"jest": "^29.x.x", | ||
"jest-html-reporters": "^3.x.x", | ||
"reflect-metadata": "^0.x.x", | ||
"rollup": "^4.x.x", | ||
@@ -84,2 +86,3 @@ "rollup-plugin-typescript2": "^0.x.x", | ||
"ts-node": "^10.x.x", | ||
"tslib": "^2.x.x", | ||
"typescript": "^5.x.x" | ||
@@ -89,4 +92,5 @@ }, | ||
"koatty_lib": "^1.x.x", | ||
"koatty_logger": "file:", | ||
"tslib": "^2.x.x", | ||
"winston": "^3.11.0", | ||
"winston": "^3.15.0", | ||
"winston-daily-rotate-file": "^4.7.1" | ||
@@ -93,0 +97,0 @@ }, |
# koatty_logger | ||
Logger for koatty. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
39080
1096
7
27
+ Addedkoatty_logger@file:
Updatedwinston@^3.15.0