question: public LogFormatter ( Logger log ) { if ( log == null ) log = Logger . getLogger ( Logger . GLOBAL_LOGGER_NAME ) ; Level lvl = null ; while ( log != null ) { lvl = log . getLevel ( ) ; if ( lvl != null ) break ; log = log . getParent ( ) ; } ; if ( lvl == null ) lvl = Level . WARNING ; this . level = lvl ; }
target:  Create a log formatter around a given logger. If null, uses the global logger.