BasicConfigurator.configure();
//LOGGER.setLevel(Level.DEBUG);
XDasAppender xdasAppender = new XDasAppender();
XDasRecord rec = null;
try {
xdasAppender.setXDasSession(
"JavaOrigLoc:JavaOrigAddr:JavaOrigService:JavaOrigAuth:JavaOrigPrincipal:JavaOrigPrincipalId");
//Add the appender to a category
LOGGER.addAppender(xdasAppender);
LOGGER.debug("XDaslogging successfully initialized");
} catch (SocketException e) {
LOGGER.error("xdasAppender.setXDasSession Failed", e);
} catch (IOException e) {
LOGGER.error("xdasAppender.setXDasSession Failed", e);
} catch (XDasException e) {
LOGGER.error("xdasAppender.setXDasSession Failed" + "XDas Error: " + e.getStatus() + ", Minor Code: "
+ e.getMinorStatus(), e);
}
try {
rec = new XDasRecord(
27,
XDasOutcomes.XDAS_OUT_ENTITY_NON_EXISTENT,
"JavaInitAuth:JavaDomainName:JavaDomainId",
"JavaTargetLocName:JavaTargetLocAddr:JavaTargetService:JavaTargetAuth:JavaTargetPrincipal:JavaTargetPrincipalId",
"Test=Yes,Debug=Yes,Meaningless=Yes");