Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add logger dynamic change info method #897

Merged
merged 4 commits into from
Mar 12, 2021
Merged

Conversation

czy88840616
Copy link
Member

@czy88840616 czy88840616 commented Mar 10, 2021

动态更新 winston 的 info。

logger.updateInfo((info) => {
  info.timestamp = Date.now();
})

fix: #895

@gitpod-io
Copy link

gitpod-io bot commented Mar 10, 2021

@codecov-io
Copy link

codecov-io commented Mar 11, 2021

Codecov Report

Merging #897 (94194c8) into 2.x (a2c6f9c) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##              2.x     #897   +/-   ##
=======================================
  Coverage   86.40%   86.41%           
=======================================
  Files         183      183           
  Lines        7497     7502    +5     
  Branches     1480     1481    +1     
=======================================
+ Hits         6478     6483    +5     
  Misses        975      975           
  Partials       44       44           
Impacted Files Coverage Δ
packages/logger/src/logger.ts 95.00% <100.00%> (+0.21%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a2c6f9c...94194c8. Read the comment docs.

@czy88840616 czy88840616 merged commit 5a11374 into 2.x Mar 12, 2021
@czy88840616 czy88840616 deleted the logger_change_info branch March 12, 2021 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

动态修改 logger的 display 格式
3 participants