本文整理了Java中flex.messaging.log.Logger.addTarget()
方法的一些代码示例,展示了Logger.addTarget()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.addTarget()
方法的具体详情如下:
包路径:flex.messaging.log.Logger
类名称: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);
}
}
内容来源于网络,如有侵权,请联系作者删除!