-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: decouple log configuration from apifylog #3399
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
Open
l2ysho
wants to merge
61
commits into
v4
Choose a base branch
from
3068-decouple-log-configuration-from-apifylog
base: v4
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+855
−200
Open
Changes from all commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
4ad3540
decouples logger from @apify/log
l2ysho 4c92be2
update .gitignore
l2ysho 90fbb0c
feat: add connectOptions and connectOverCDPOptions to PlaywrightCrawler
l2ysho 21a7f13
Merge branch 'v4' into 3068-decouple-log-configuration-from-apifylog
l2ysho 7711a16
refactor to make build work
l2ysho 3e75bdc
lint fix
l2ysho f2c18c9
add abstract class to simplify implementation
l2ysho 26d101e
Fix docs
l2ysho 5750725
fix log spy in test
l2ysho e10bff2
Revert "feat: add connectOptions and connectOverCDPOptions to Playwri…
l2ysho f1f1fac
Fix Request logger
l2ysho 1d78eda
cleanup + refactor
l2ysho d8cb997
refactor
l2ysho ab44350
cleanup
l2ysho 3ae62b2
fix request log
l2ysho d259010
fix minimal level
l2ysho 62a2934
fix request tandem
l2ysho 8175e7b
add test for BaseCrawleeLogger
l2ysho d785449
fix test
l2ysho b3875f6
lint fix
l2ysho fbaf3a5
fix warningOnece
l2ysho d03dcf3
fix tests
l2ysho bbf293f
revert gitignore
l2ysho 78380e8
Merge branch 'v4' into 3068-decouple-log-configuration-from-apifylog
l2ysho 84b256f
after merge refactor
l2ysho 439e67b
fix leftover imports
l2ysho 37788ad
lint:fix
l2ysho 67616a3
update snapshotter
l2ysho 3c4fb54
lint:fix
l2ysho 96eca15
lint:fix
l2ysho 2b8974e
update recoverable_state
l2ysho cbabbae
refactor test
l2ysho fb555ee
remove dead import
l2ysho fd22e54
small fix in tests
l2ysho 167e14a
fix tests
l2ysho 45f03df
Remove useless enum
l2ysho c026c58
remove unused import
l2ysho 7c20454
lint:fix
l2ysho 9ccf389
decouple some more packages
l2ysho 9f838ff
lint:fix
l2ysho 765bfea
lint:fix
l2ysho d15376a
lint:fix
l2ysho 6bc344d
fix warningOnce spawning multiple childs
l2ysho 1957a9c
lint:fix
l2ysho 60e3c30
revert configuration changes
l2ysho 8cc7216
update tests
l2ysho b56653a
cleanup test
l2ysho 5b81475
refactor(log): rename internal logger methods
l2ysho 7b3c158
refactor _log to log + remove loggerProvider from Conf + cleanup
l2ysho ee32484
lint:fix
l2ysho f2944aa
lint:fix
l2ysho 755261a
enable logger conflict
l2ysho a942bd2
lint fix
l2ysho 9deb0c8
fix getLog
l2ysho 82b688d
internal -> logWithLevel
l2ysho f4361bc
lint:fix
l2ysho 4b67118
add child logger
l2ysho 87bab27
fix tests
l2ysho 3c8fdbb
fix tests
l2ysho 21499bf
fix test
l2ysho 00c5fbb
lint fix
l2ysho File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be a
getproperty that reaches intoserviceLocatorinstead? Just to avoid storing stuff in random places.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this basically following how it worked before (log property storing child logger)
before:
log = defaultLog.child({ prefix: this.constructor.name })defaultLog.warningOnce()now:
log = serviceLocator.getLogger().child({ prefix: this.constructor.name })serviceLocator.getLogger().warningOnce()only now there is internal
logproperty and logger property for scopedServiceLocator, i think we do not need both 🤔