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: file path support relative path #41

Merged
merged 2 commits into from Dec 31, 2018
Merged

feat: file path support relative path #41

merged 2 commits into from Dec 31, 2018

Conversation

atian25
Copy link
Member

@atian25 atian25 commented Dec 31, 2018

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

@codecov
Copy link

codecov bot commented Dec 31, 2018

Codecov Report

Merging #41 into master will increase coverage by 5.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #41      +/-   ##
==========================================
+ Coverage   94.42%   99.45%   +5.02%     
==========================================
  Files          14       14              
  Lines         377      368       -9     
==========================================
+ Hits          356      366      +10     
+ Misses         21        2      -19
Impacted Files Coverage Δ
lib/egg/loggers.js 95.83% <ø> (+3.99%) ⬆️
lib/egg/logger.js 100% <100%> (+46.42%) ⬆️
lib/egg/context_logger.js 100% <0%> (ø) ⬆️
lib/egg/error_logger.js 100% <0%> (ø) ⬆️
lib/utils.js 100% <0%> (+1.09%) ⬆️
lib/egg/console_logger.js 100% <0%> (+42.85%) ⬆️

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 0262ac2...8ef014f. Read the comment docs.

@atian25
Copy link
Member Author

atian25 commented Dec 31, 2018

logrotator 那边也要改改

暂时不需要,这里是在 constructor 里面就 normalize 了 options.file,所以那边读取是没问题的

@@ -15,7 +15,6 @@ module.exports = {
'egg-ci',
],
semver: [
'egg-bin@1',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不支持 node 4 了?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/eggjs/egg-logger/blob/master/package.json#L60

看来一直不支持,应该改一下 engines

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

之前死马升大版本时漏了改好像

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#42

@fengmk2 fengmk2 merged commit 22cf355 into master Dec 31, 2018
@fengmk2 fengmk2 deleted the relative branch December 31, 2018 16:08
@fengmk2
Copy link
Member

fengmk2 commented Dec 31, 2018

2.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants