Is java.util.logging.Logger.log() is a chain of responsibility pattern?If so how log method call is getting chained for the next call?
Is java.util.logging.Logger.log() is a chain of responsibility pattern?If so how log method call is
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is the relevant code:
As you can see each logging record is passed to every
Handlerassigned to a given logger and, ifuseParentHandlersistrue, the same algorithm is applied to parent all the way up to the top.So essentially this is a chain of responsibility pattern where each element in the chain might handle piece of the request.