Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
message-call-service
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
邵兴业
message-call-service
Commits
815bd182
Commit
815bd182
authored
Jul 26, 2021
by
Sxy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 日志配置
parent
2b71bfe7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
.gitignore
+1
-0
README.md
+0
-2
utils/logger.js
+7
-2
No files found.
.gitignore
View file @
815bd182
node_modules/
package-lock.json
logs/
README.md
View file @
815bd182
...
...
@@ -12,8 +12,6 @@
> 注: 全链路追踪 请求头 X-Request-Id
##### 消息请求失败重试
> 重试的阶梯时间 在 setting中配置
...
...
utils/logger.js
View file @
815bd182
...
...
@@ -10,10 +10,15 @@ const logger = createLogger({
format
:
format
.
combine
(
format
.
timestamp
(),
format
.
splat
(),
myFormat
myFormat
,
format
.
json
()
),
transports
:
[
new
transports
.
Console
()
new
transports
.
Console
(),
new
transports
.
File
({
dirname
:
'./logs'
,
filename
:
`test.log`
,
})
],
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment