本文整理了Java中com.applitools.eyes.Logger.setLogHandler()
方法的一些代码示例,展示了Logger.setLogHandler()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.setLogHandler()
方法的具体详情如下:
包路径:com.applitools.eyes.Logger
类名称:Logger
方法名:setLogHandler
[英]Sets the log handler.
[中]设置日志处理程序。
代码示例来源:origin: com.applitools/eyes-sdk-java-jersey2x
/**
* Sets a handler of log messages generated by this API.
*
* @param logHandler Handles log messages generated by this API.
*/
@SuppressWarnings("UnusedDeclaration")
public void setLogHandler(LogHandler logHandler) {
logger.setLogHandler(logHandler);
}
代码示例来源:origin: com.applitools/eyes-sdk-core-java3-jersey2x
/**
* Sets a handler of log messages generated by this API.
*
* @param logHandler Handles log messages generated by this API.
*/
@SuppressWarnings("UnusedDeclaration")
public void setLogHandler(LogHandler logHandler) {
logger.setLogHandler(logHandler);
}
代码示例来源:origin: com.applitools/eyes-sdk-java
/**
* Sets a handler of log messages generated by this API.
*
* @param logHandler Handles log messages generated by this API.
*/
@SuppressWarnings("UnusedDeclaration")
public void setLogHandler(LogHandler logHandler) {
logger.setLogHandler(logHandler);
}
代码示例来源:origin: com.applitools/eyes-common-java4
public static void setLogHandler(LogHandler logHandler){
ArgumentGuard.notNull(logHandler, "logHandler");
logger.setLogHandler(logHandler);
}
代码示例来源:origin: com.applitools/eyes-common-java3
/**
* Sets a handler of log messages generated by this API.
* @param logHandler Handles log messages generated by this API.
*/
public void setLogHandler(LogHandler logHandler) {
logger.setLogHandler(logHandler);
if (!logHandler.isOpen()) {
logHandler.open();
}
}
代码示例来源:origin: com.applitools/eyes-selenium-java3
/**
* Sets a handler of log messages generated by this API.
*
* @param logHandler Handles log messages generated by this API.
*/
@Override
public void setLogHandler(LogHandler logHandler) {
if (getIsDisabled()) return;
LogHandler currentLogHandler = logger.getLogHandler();
this.logger = new Logger();
this.logger.setLogHandler(new MultiLogHandler(currentLogHandler, logHandler));
if (currentLogHandler.isOpen() && !logHandler.isOpen()) {
logHandler.open();
}
}
内容来源于网络,如有侵权,请联系作者删除!