Developer Tip Part 2 Logging

  • Logging is hierarchical and this parent-child relationship is dependent on the logger name. and since calling the logger.log() method is actually using the call for logging message, the log message will be logged in every stages of parent-child. so the easy way is to just configure the logging level for logger at the parent level, but call the log method in child level.
  • children logger in classes doesn’t need to have handlers, so it means they will not log anything, but they can actually pass the logEntry up into their parents depending on their logger name, so handlers can only be configured at parent level.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s