Skip to content

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

Merged
lamweili merged 1 commit intomasterfrom
update-docs
Mar 7, 2023
Merged

docs: added that log4js.getLogger() may call log4js.configure()#1375
lamweili merged 1 commit intomasterfrom
update-docs

Conversation

@lamweili
Copy link
Copy Markdown
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
Comment thread docs/api.md

## 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.
Copy link
Copy Markdown

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