Compare commits

...

2 Commits

Author SHA1 Message Date
c398cd108c chore(release): publish
- @egg/lark-msg-tool@1.21.1
 - @egg/logger@1.7.0
 - @egg/net-tool@1.32.3
2025-03-18 10:37:31 +00:00
c963202226 feat(logger): 更新日志格式,添加 JSON 格式化并注释掉简单文本格式化
All checks were successful
/ release (push) Successful in 27s
2025-03-18 10:37:05 +00:00
8 changed files with 31 additions and 16 deletions

10
package-lock.json generated
View File

@ -12394,10 +12394,10 @@
},
"packages/lark-msg-tool": {
"name": "@egg/lark-msg-tool",
"version": "1.21.0",
"version": "1.21.1",
"license": "ISC",
"dependencies": {
"@egg/logger": "^1.6.0",
"@egg/logger": "^1.7.0",
"winston": "*"
},
"devDependencies": {
@ -12406,7 +12406,7 @@
},
"packages/logger": {
"name": "@egg/logger",
"version": "1.6.0",
"version": "1.7.0",
"license": "ISC",
"dependencies": {
"winston": "*",
@ -12415,10 +12415,10 @@
},
"packages/net-tool": {
"name": "@egg/net-tool",
"version": "1.32.2",
"version": "1.32.3",
"license": "ISC",
"dependencies": {
"@egg/logger": "^1.6.0",
"@egg/logger": "^1.7.0",
"@gitbeaker/rest": "*",
"winston": "*"
}

View File

@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## 1.21.1 (2025-03-18)
**Note:** Version bump only for package @egg/lark-msg-tool
# [1.21.0](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/lark-msg-tool@1.20.0...@egg/lark-msg-tool@1.21.0) (2024-12-17)
### Features

View File

@ -1,6 +1,6 @@
{
"name": "@egg/lark-msg-tool",
"version": "1.21.0",
"version": "1.21.1",
"description": "Lark Msg Tools for Egg projects",
"type": "module",
"main": "src/index.ts",
@ -21,7 +21,7 @@
"@types/lodash": "*"
},
"dependencies": {
"@egg/logger": "^1.6.0",
"@egg/logger": "^1.7.0",
"winston": "*"
}
}

View File

@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# 1.7.0 (2025-03-18)
### Features
- **logger:** 更新日志格式,添加 JSON 格式化并注释掉简单文本格式化 ([c963202](http://yingbo.im:3000/zhaoyingbo/egg_tools/commits/c963202226ff94955b33c01040d425bb672f8121))
# 1.6.0 (2024-11-27)
### Features

View File

@ -1,6 +1,6 @@
{
"name": "@egg/logger",
"version": "1.6.0",
"version": "1.7.0",
"description": "Logger for Egg projects",
"type": "module",
"main": "src/index.ts",

View File

@ -40,12 +40,13 @@ if (isProd) {
const formatList = [
format.simple(), // 简单文本格式化
format.timestamp({ format: "YYYY-MM-DD HH:mm:ss" }),
format.printf(({ level, message, timestamp, requestId }) => {
const singleLineMessage = isProd
? message.replace(/\n/g, " ") // 将换行符替换为空格
: message
return `${timestamp} [${level}]${requestId ? ` [RequestId: ${requestId}]` : ""}: ${singleLineMessage}`
}),
format.json(), // json格式化
// format.printf(({ level, message, timestamp, requestId }) => {
// const singleLineMessage = isProd
// ? message.replace(/\n/g, " ") // 将换行符替换为空格
// : message
// return `${timestamp} [${level}]${requestId ? ` [RequestId: ${requestId}]` : ""}: ${singleLineMessage}`
// }),
]
// 开发环境下输出彩色日志

View File

@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.32.3](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/net-tool@1.32.2...@egg/net-tool@1.32.3) (2025-03-18)
**Note:** Version bump only for package @egg/net-tool
## [1.32.2](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/net-tool@1.32.1...@egg/net-tool@1.32.2) (2025-03-18)
**Note:** Version bump only for package @egg/net-tool

View File

@ -1,6 +1,6 @@
{
"name": "@egg/net-tool",
"version": "1.32.2",
"version": "1.32.3",
"description": "Net Tools for Egg projects",
"type": "module",
"main": "src/index.ts",
@ -17,7 +17,7 @@
"author": "RainSun <zhaoyingbo@live.cn>",
"license": "ISC",
"dependencies": {
"@egg/logger": "^1.6.0",
"@egg/logger": "^1.7.0",
"@gitbeaker/rest": "*",
"winston": "*"
}