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

docs: added that log4js.getLogger() may call log4js.configure() #1375

Merged
merged 1 commit into from Mar 7, 2023

Conversation

lamweili
Copy link
Contributor

@lamweili lamweili commented Mar 7, 2023

No description provided.

@lamweili lamweili added the documentation Improvements or additions to documentation label Mar 7, 2023
@lamweili lamweili added this to the 6.8.1 milestone Mar 7, 2023
@lamweili lamweili merged commit 0082928 into master Mar 7, 2023
@lamweili lamweili deleted the update-docs branch March 7, 2023 07:15
@lamweili lamweili modified the milestone: 6.9.0 Mar 7, 2023
@lamweili lamweili linked an issue Mar 7, 2023 that may be closed by this pull request
@@ -32,6 +32,8 @@ Properties:

## Loggers - `log4js.getLogger([category])`

To support the minimalist usage, this function will implicitly call `log4js.configure()` with the [default configurations](https://github.com/log4js-node/log4js-node/blob/faebee0e8235cf00227ca88642eeff3471fc407c/lib/log4js.js#L158-L163) if it hasn't been configured before.

Choose a reason for hiding this comment

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

This has a chance to quickly become outdated in case you change the default configuration.

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

Successfully merging this pull request may close these issues.

logger.isLevelEnabled('off') not functioning as expected
2 participants