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

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

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

Logger.addTarget介绍

[英]Adds a Target that will format and output log events generated by this Logger.
[中]添加一个Target,它将格式化并输出由此Logger生成的日志事件。

代码示例

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

/**
 * Sets up this target with the specified logger.
 * This allows this target to receive log events from the specified logger.
 *
 * @param logger this target should listen to.
 */
public void addLogger(Logger logger)
{
  if (logger != null)
  {
    synchronized (lock)
    {
      loggerCount++;
    }
    logger.addTarget(this);
  }
}

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

/**
 * Sets up this target with the specified logger.
 * This allows this target to receive log events from the specified logger.
 *
 * @param logger this target should listen to.
 */
public void addLogger(Logger logger)
{
  if (logger != null)
  {
    synchronized (lock)
    {
      loggerCount++;
    }
    logger.addTarget(this);
  }
}

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

/**
 * Sets up this target with the specified logger.
 * This allows this target to receive log events from the specified logger.
 *
 * @param logger this target should listen to.
 */
public void addLogger(Logger logger)
{
  if (logger != null)
  {
    synchronized (lock)
    {
      loggerCount++;
    }
    logger.addTarget(this);
  }
}

相关文章