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