本文整理了Java中com.applitools.eyes.Logger.getLogHandler()
方法的一些代码示例,展示了Logger.getLogHandler()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.getLogHandler()
方法的具体详情如下:
包路径:com.applitools.eyes.Logger
类名称:Logger
方法名:getLogHandler
暂无
代码示例来源:origin: com.applitools/eyes-sdk-java-jersey2x
/**
* @return The currently set log handler.
*/
@SuppressWarnings("UnusedDeclaration")
public LogHandler getLogHandler() {
return logger.getLogHandler();
}
代码示例来源:origin: com.applitools/eyes-sdk-java
/**
* @return The currently set log handler.
*/
@SuppressWarnings("UnusedDeclaration")
public LogHandler getLogHandler() {
return logger.getLogHandler();
}
代码示例来源:origin: com.applitools/eyes-sdk-core-java3-jersey2x
/**
* @return The currently set log handler.
*/
@SuppressWarnings("UnusedDeclaration")
public LogHandler getLogHandler() {
return logger.getLogHandler();
}
代码示例来源: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();
}
}
代码示例来源:origin: com.applitools/eyes-sdk-core-java3-jersey2x
RectangleSize viewportSize, SessionType sessionType) {
logger.getLogHandler().open();
logger.getLogHandler().close();
throw e;
代码示例来源:origin: com.applitools/eyes-sdk-java
RectangleSize viewportSize, SessionType sessionType) {
logger.getLogHandler().open();
logger.getLogHandler().close();
throw e;
代码示例来源:origin: com.applitools/eyes-sdk-java-jersey2x
RectangleSize viewportSize, SessionType sessionType) {
logger.getLogHandler().open();
logger.getLogHandler().close();
throw e;
代码示例来源:origin: com.applitools/eyes-sdk-java-jersey2x
/**
* If a test is running, aborts it. Otherwise, does nothing.
*/
public void abortIfNotClosed() {
try {
if (isDisabled) {
logger.verbose("Ignored");
return;
}
isOpen = false;
lastScreenshot = null;
clearUserInputs();
if (null == runningSession) {
logger.verbose("Closed");
return;
}
logger.verbose("Aborting server session...");
try {
// When aborting we do not save the test.
serverConnector.stopSession(runningSession, true, false);
logger.log("--- Test aborted.");
} catch (EyesException ex) {
logger.log(
"Failed to abort server session: " + ex.getMessage());
}
} finally {
runningSession = null;
logger.getLogHandler().close();
}
}
代码示例来源:origin: com.applitools/eyes-sdk-java
/**
* If a test is running, aborts it. Otherwise, does nothing.
*/
public void abortIfNotClosed() {
try {
if (isDisabled) {
logger.verbose("Ignored");
return;
}
isOpen = false;
lastScreenshot = null;
clearUserInputs();
if (null == runningSession) {
logger.verbose("Closed");
return;
}
logger.verbose("Aborting server session...");
try {
// When aborting we do not save the test.
serverConnector.stopSession(runningSession, true, false);
logger.log("--- Test aborted.");
} catch (EyesException ex) {
logger.log(
"Failed to abort server session: " + ex.getMessage());
}
} finally {
runningSession = null;
logger.getLogHandler().close();
}
}
代码示例来源:origin: com.applitools/eyes-sdk-core-java3-jersey2x
/**
* If a test is running, aborts it. Otherwise, does nothing.
*/
public void abortIfNotClosed() {
try {
if (isDisabled) {
logger.verbose("Ignored");
return;
}
isOpen = false;
lastScreenshot = null;
clearUserInputs();
if (null == runningSession) {
logger.verbose("Closed");
return;
}
logger.verbose("Aborting server session...");
try {
// When aborting we do not save the test.
serverConnector.stopSession(runningSession, true, false);
logger.log("--- Test aborted.");
} catch (EyesException ex) {
logger.log(
"Failed to abort server session: " + ex.getMessage());
}
} finally {
runningSession = null;
logger.getLogHandler().close();
}
}
代码示例来源:origin: com.applitools/eyes-selenium-java3
private IEyesConnector createEyesConnector(RenderBrowserInfo browserInfo) {
logger.verbose("creating eyes server connector");
IEyesConnector eyesConnector = new EyesConnector(browserInfo, renderingGridManager.getRateLimiter());
eyesConnector.setLogHandler(this.logger.getLogHandler());
eyesConnector.setProxy(this.proxy);
eyesConnector.setBatch(batchInfo);
代码示例来源:origin: com.applitools/eyes-sdk-java-jersey2x
logger.getLogHandler().close();
代码示例来源:origin: com.applitools/eyes-sdk-core-java3-jersey2x
logger.getLogHandler().close();
代码示例来源:origin: com.applitools/eyes-sdk-java
logger.getLogHandler().close();
代码示例来源:origin: com.applitools/eyes-sdk-java-jersey2x
logger.getLogHandler().close();
代码示例来源:origin: com.applitools/eyes-sdk-java
logger.getLogHandler().close();
代码示例来源:origin: com.applitools/eyes-sdk-core-java3-jersey2x
logger.getLogHandler().close();
内容来源于网络,如有侵权,请联系作者删除!