return ShrinkWrap.create(EnterpriseArchive.class, "logging-profile.ear")
.addAsManifestResource(LoggingBean.class.getPackage(),
"logging.properties", "logging.properties")
.setManifest(new Asset() {
public InputStream openStream() {
ManifestBuilder builder = ManifestBuilder.newInstance();
builder.addManifestHeader("Dependencies", "org.jboss.logmanager, org.jboss.as.logging");
builder.addManifestHeader("Logging-Profile", "test");
return builder.openStream();
}
})
.addAsModules(logContextDeployment("logcontext-profile-in-ear.war"), loggingDeployment("logging-profile-in-ear.war"));
}