flex.messaging.log.Logger.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(243)

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

Logger.<init>介绍

[英]Constructs a Logger instance that will log information out to the specified category.
[中]构造一个Logger实例,将信息注销到指定类别。

代码示例

代码示例来源:origin: org.apache.flex.blazeds/flex-messaging-common

/**
 * Given a category, returns the logger associated with the category.
 *
 * @param category Categogry for the logger.
 * @return Logger associated with the category.
 */
public static Logger getLogger(String category)
{
  if (log != null)
    return getLogger(log, category);
  // Return a dummy logger?
  return new Logger(category);
}

代码示例来源:origin: apache/flex-blazeds

/**
 * Given a category, returns the logger associated with the category.
 *
 * @param category Categogry for the logger.
 * @return Logger associated with the category.
 */
public static Logger getLogger(String category)
{
  if (log != null)
    return getLogger(log, category);
  // Return a dummy logger?
  return new Logger(category);
}

代码示例来源:origin: com.adobe.blazeds/blazeds-common

/**
 * Given a category, returns the logger associated with the category.
 *
 * @param category Categogry for the logger.
 * @return Logger associated with the category.
 */
public static Logger getLogger(String category)
{
  if (log != null)
  {
    return getLogger(log, category);
  }
  else
  {
    // Return a dummy logger?
    return new Logger(category);
  }
}

代码示例来源:origin: com.adobe.blazeds/blazeds-common

/**
 * @exclude
 */
public static Logger getLogger(Log log, String category)
{
  checkCategory(category);
  synchronized (staticLock)
  {
    Logger result = (Logger)log.loggers.get(category);
    if (result == null)
    {
      result = new Logger(category);
      // check to see if there are any targets for this logger.
      for (Iterator iter = log.targets.iterator(); iter.hasNext();)
      {
        Target target = (Target)iter.next();
        if (categoryMatchInFilterList(category, target.getFilters()))
          target.addLogger(result);
      }
      log.loggers.put(category, result);
    }
    return result;
  }
}

代码示例来源:origin: org.apache.flex.blazeds/flex-messaging-common

/**
 * @param log base logger.
 * @param category category to log to.
 * @return Logger instance for the given category.
 */
public static Logger getLogger(Log log, String category)
{
  checkCategory(category);
  synchronized (staticLock)
  {
    Logger result = (Logger) log.loggers.get(category);
    if (result == null)
    {
      result = new Logger(category);
      // Check to see if there are any targets for this logger.
      for (Iterator iter = log.targets.iterator(); iter.hasNext();)
      {
        Target target = (Target) iter.next();
        if (categoryMatchInFilterList(category, target.getFilters()))
          target.addLogger(result);
      }
      log.loggers.put(category, result);
    }
    return result;
  }
}

代码示例来源:origin: apache/flex-blazeds

/**
 * @param log base logger.
 * @param category category to log to.
 * @return Logger instance for the given category.
 */
public static Logger getLogger(Log log, String category)
{
  checkCategory(category);
  synchronized (staticLock)
  {
    Logger result = (Logger) log.loggers.get(category);
    if (result == null)
    {
      result = new Logger(category);
      // Check to see if there are any targets for this logger.
      for (Iterator iter = log.targets.iterator(); iter.hasNext();)
      {
        Target target = (Target) iter.next();
        if (categoryMatchInFilterList(category, target.getFilters()))
          target.addLogger(result);
      }
      log.loggers.put(category, result);
    }
    return result;
  }
}

相关文章