private static Logger getOrCreateLogger ( final String name ) { if ( name == null || name . length ( ) == 0 ) { return root ; } else { Logger logger = loggers . get ( name ) ; if ( logger == null ) { Logger parent = getOrCreateLogger ( reduce ( name ) ) ; logger = new Logger ( parent , name ) ; loggers . put ( name , logger ) ; } return logger ; } }
Retrieves a logger by name .