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: support for isomorphic logging on browser #1374

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

aellerton
Copy link

Certain modules do not exist in a browser environment, e.g. cluster, file/os/path, etc.

In that environment, file-based appenders are effectively disabled by this commit, without modifying the source directly.

The clustering.js file is still required, but this commit essentially makes it a no-op, again without modifying the source directly.

This addresses #968 and supersedes PR 1023 #1023

@lamweili
Copy link
Contributor

lamweili commented Mar 7, 2023

Now you are missing some tests for the test coverage and you should be good to go!
May want to use /* istanbul ignore file */ if it doesn't fit in nicely.

@lamweili lamweili added this to the 6.8.1 milestone Mar 7, 2023
Certain modules do not exist in a browser environment.
In that environment, file-based appenders are effectively
disabled by this commit, without modifying the source directly.
@aellerton
Copy link
Author

Thank you!

@lamweili lamweili modified the milestone: 6.9.0 Mar 7, 2023
@lamweili
Copy link
Contributor

lamweili commented Mar 7, 2023

Thank you!

I should thank you instead! 🤗

@aellerton aellerton changed the title feat: support for idempotent logging on browser feat: support for ismorphic logging on browser Mar 9, 2023
@aellerton aellerton changed the title feat: support for ismorphic logging on browser feat: support for isomorphic logging on browser Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
4 participants