Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How and when do loggers inherit level?

inherit level loggers
0
Posted

How and when do loggers inherit level?

0

Following 3 rules could be applied: Root logger always has an assigned level. A logger which does not have an explicit log level specified inherits the parent’s log level. If the parent logger is not initialized then the parent’s parent is checked and so on, until the root logger. So , in effect, every logger which does not have an explicit level, will inherit from its parent. The parent may in turn inherit for its own parent, if no explicit logging was specified for the parent, and so on. until the root logger, which is guaranteed to have a log level.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.