org.objectweb.util.monolog.api.Logger.getName()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(3.7k)|赞(0)|评价(0)|浏览(84)

本文整理了Java中org.objectweb.util.monolog.api.Logger.getName()方法的一些代码示例,展示了Logger.getName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.getName()方法的具体详情如下:
包路径:org.objectweb.util.monolog.api.Logger
类名称:Logger
方法名:getName

Logger.getName介绍

暂无

代码示例

代码示例来源:origin: org.ow2.petals.dsb/dsb-removed

/**
 * {@inheritDoc}
 */
public String getName() {
  return this.log.getName();
}

代码示例来源:origin: org.ow2.petals/petals-kernel-api

/**
 * {@inheritDoc}
 */
public String getName() {
  return this.log.getName();
}

代码示例来源:origin: org.objectweb.petals/petals-kernel

public String getName() {
  return this.log.getName();
}

代码示例来源:origin: org.ow2.petals.dsb/dsb-kernel

public java.util.logging.Logger getLogger() {
  // CHA 2012 : Don't care about the level...
  java.util.logging.Logger log = java.util.logging.Logger.getLogger(logger.getName());
  return log;
}

代码示例来源:origin: org.ow2.petals.dsb/dsb-removed

public java.util.logging.Logger getLogger() {
  // CHA2012 : FIX for API change
  return java.util.logging.Logger.getLogger(log.getName());
}

代码示例来源:origin: org.ow2.petals.dsb/dsb-kernel

public java.util.logging.Logger getLogger() {
  // CHA 2012 : Don't care about the level...
  java.util.logging.Logger log = java.util.logging.Logger.getLogger(logger.getName());
  return log;            }

代码示例来源:origin: org.objectweb.jonas/jonas-log

/**
 * @return the topics list. Assumes that all Loggers are TopicalLoggers.
 */
public String[] getTopics() {
  Logger[] logs = Log.getLoggerFactory().getLoggers();
  // put names in alphabetical order
  TreeSet tset = new TreeSet();
  for (int i = 0; i < logs.length; i++) {
    tset.add(logs[i].getName());
  }
  return (String[]) tset.toArray(new String[0]);
}

代码示例来源:origin: org.ow2.jonas/jonas-mbeans

/**
 * @return the topics list. Assumes that all Loggers are TopicalLoggers.
 */
public String[] getTopics() {
  Logger[] logs = Log.getLoggerFactory().getLoggers();
  // put names in alphabetical order
  TreeSet tset = new TreeSet();
  for (int i = 0; i < logs.length; i++) {
    tset.add(logs[i].getName());
  }
  return (String[]) tset.toArray(new String[0]);
}

代码示例来源:origin: org.objectweb.petals/petals-kernel

/**
 * Constructor of the ComponentContextImpl class
 * 
 * @param comp
 *            the fractal representation of installer or component life
 *            cycle component
 * @throws IllegalArgumentException Fractal Error: Impossible to get the service interface
 */
public ComponentContextImpl(org.objectweb.fractal.api.Component comp){
  super();
  this.comp = comp;
  org.objectweb.util.monolog.api.Logger log = getLogger();
  this.logger = new LoggingUtil(log,log.getName().substring(log.getName().lastIndexOf(".")+1));
     this.internalEndpoints = new HashSet<AbstractEndpoint>();
  this.externalEndpoints = new HashSet<ServiceEndpoint>();
}

代码示例来源:origin: org.ow2.jonas/jonas-mbeans

/**
 * Get the topics list. Assumes that all Loggers are TopicalLoggers.
 * @return the topics list.
 */
public String[] getTopics() {
  Logger[] logs = Log.getLoggerFactory().getLoggers();
  // put names in alphabetical order
  TreeSet<String> tset = new TreeSet<String>();
  for (int i = 0; i < logs.length; i++) {
    tset.add(logs[i].getName());
  }
  return tset.toArray(new String[0]);
}

代码示例来源:origin: org.objectweb.petals/petals-kernel

/**
 * Initialization of the petals component
 *
 * @throws PetalsException
 * @throws JBIException
 *
 */
@LifeCycle(on = LifeCycleType.START)
public void startComponentLifeCycle() {
  log = new LoggingUtil(logger, logger.getName().substring(
    logger.getName().lastIndexOf(".") + 1));
  log.start();
  containerConfiguration = configurationService.getContainerConfiguration();
  log.end();
}

代码示例来源:origin: org.objectweb.petals/petals-kernel

/**
 * Initialization of the petals component
 *
 * @throws PetalsException
 * @throws JBIException
 *
 */
@LifeCycle(on = LifeCycleType.START)
public void start() throws PetalsException, JBIException {
  this.log = new LoggingUtil(this.logger, this.logger.getName()
    .substring(this.logger.getName().lastIndexOf(".") + 1));
  this.log.start();
  containerConfiguration = configurationService.getContainerConfiguration();
  this.log.end();
}

相关文章