Is java.util.logging.Logger.log() is an chain of responsibility pattern? -


is java.util.logging.logger.log() chain of responsibility pattern?if how log method call getting chained next call?

here relevant code:

// post logrecord our handlers, , // our parents' handlers, way tree.  logger logger = this; while (logger != null) {     handler targets[] = logger.gethandlers();      //...      if (!logger.getuseparenthandlers()) {       break;     }      logger = logger.getparent(); } } 

as can see each logging record passed every handler assigned given logger and, if useparenthandlers true, same algorithm applied parent way top.

so chain of responsibility pattern each element in chain might handle piece of request.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -