Package org.apache.log4j.spi

Examples of org.apache.log4j.spi.LoggerRepository.shutdown()


        LogManager.getRepositorySelector();
      LoggerRepository lr = repositorySelector.detachRepository(loggingContextName);
      if(lr != null) {
        Logger logger = lr.getLogger(this.getClass().getName());
        logger.debug("About to shutdown logger repository named [{}]", lr.getName());
        lr.shutdown();
      }
    }
  }

  /**
 
View Full Code Here


        LogManager.getRepositorySelector();
      LoggerRepository lr = repositorySelector.detachRepository(loggingContextName);
      if(lr != null) {
        logger.debug("About to shutdown logger repository named ["+lr.getName()+
            "]");
        lr.shutdown();
      }
    }
  }

  /**
 
View Full Code Here

                logger.debug("About to shutdown logger repository named [{}]",
                    ((LoggerRepositoryEx) lr).getName());
            } else {
                logger.debug("About to shutdown unnamed logger repository");
            }
            lr.shutdown();
        }
      }
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.