Skip to content

feat: support for isomorphic logging on browser#1374

Merged
lamweili merged 1 commit intolog4js-node:masterfrom
aellerton:master
Mar 7, 2023
Merged

feat: support for isomorphic logging on browser#1374
lamweili merged 1 commit intolog4js-node:masterfrom
aellerton:master

Conversation

@aellerton
Copy link
Copy Markdown

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

@aellerton aellerton force-pushed the master branch 2 times, most recently from fa3794d to 6cc56e2 Compare March 7, 2023 06:12
@lamweili
Copy link
Copy Markdown
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.

Comment thread lib/clusteringBrowser.js
@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
Copy Markdown
Author

Thank you!

@lamweili lamweili modified the milestone: 6.9.0 Mar 7, 2023
@lamweili
Copy link
Copy Markdown
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