In brief
logging organizes messages by severity and allows their handling to be configured. Named loggers help distinguish events from different application components.
Useful to know
logging organizes messages by severity and allows their handling to be configured. Named loggers help distinguish events from different application components. [1]
Choose context that explains the problem without including passwords or complete personal records. Changing the level cannot erase a secret already logged. A useful diagnostic log explains the cause rather than duplicating all input.
Sources
For further detail and to check the information: