Skip to content

Add Using of the Child Logger for Modules and/or Classes#1

Open
robpal94 wants to merge 2 commits into
ChrisDietrich:masterfrom
robpal94:feature/add_child_logger
Open

Add Using of the Child Logger for Modules and/or Classes#1
robpal94 wants to merge 2 commits into
ChrisDietrich:masterfrom
robpal94:feature/add_child_logger

Conversation

@robpal94

@robpal94 robpal94 commented Jun 24, 2019

Copy link
Copy Markdown

The current example only uses one root logger for an entire python application. This is fine for a simple python script which does not uses multiple classes and/or modules.

However, when having a more structured application, which makes use of multiple modules, a child logger for each module should be used. One advantage for example is, that you can clearly see, which module produces which log message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants