congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
BootstrapLogger
Code IndexAdd Tabnine to your IDE (free)

How to use
BootstrapLogger
in
org.wildfly.swarm.bootstrap.logging

Best Java code snippets using org.wildfly.swarm.bootstrap.logging.BootstrapLogger (Showing top 20 results out of 315)

origin: thorntail/thorntail

public static BootstrapLogger logger(String name) {
  synchronized (LOGGERS) {
    BootstrapLogger logger = LOGGERS.get(name);
    if (logger == null) {
      logger = new BootstrapLogger(name);
      LOGGERS.put(name, logger);
    }
    return logger;
  }
}
origin: thorntail/thorntail

public void debug(Object message) {
  getBackingLogger().debug(message);
}
origin: thorntail/thorntail

public String toString() {
  return "[" + this.name + ": " + this.getLevel() + "]";
}
origin: wildfly-swarm-archive/ARCHIVE-wildfly-swarm

  protected void handleWildFlySwarmBootstrapConf(ModuleSpec.Builder builder) throws IOException {
    if (LOG.isTraceEnabled()) {
      LOG.trace("Loading conf from " + WildFlySwarmBootstrapConf.CLASSPATH_LOCATION);
    }
    InputStream bootstrapTxt = getClass().getClassLoader().getResourceAsStream(WildFlySwarmBootstrapConf.CLASSPATH_LOCATION);

    if (bootstrapTxt != null) {
      WildFlySwarmBootstrapConf conf = new WildFlySwarmBootstrapConf(bootstrapTxt);
      conf.apply(builder);
    }
  }
}
origin: wildfly-swarm-archive/ARCHIVE-wildfly-swarm

content.get(HASH).set(hash);
BootstrapLogger.logger("org.wildfly.swarm.runtime.deployer")
    .info("deploying " + deployment.getName());
System.setProperty(SwarmProperties.CURRENT_DEPLOYMENT, deployment.getName());
try {
origin: wildfly-swarm-archive/ARCHIVE-wildfly-swarm

if (LOG.isDebugEnabled()) {
  LOG.debug(bootstrapOperations);
origin: org.wildfly.swarm/container-runtime

public RuntimeServer() {
  try {
    Module loggingModule = Module.getBootModuleLoader().loadModule(ModuleIdentifier.create("org.wildfly.swarm.logging", "runtime"));
    ClassLoader originalCl = Thread.currentThread().getContextClassLoader();
    try {
      Thread.currentThread().setContextClassLoader(loggingModule.getClassLoader());
      System.setProperty("java.util.logging.manager", "org.jboss.logmanager.LogManager");
      System.setProperty("org.jboss.logmanager.configurator", LoggingConfigurator.class.getName());
      //force logging init
      LogManager.getLogManager();
      BootstrapLogger.setBackingLoggerManager(new JBossLoggingManager());
    } finally {
      Thread.currentThread().setContextClassLoader(originalCl);
    }
  } catch (ModuleLoadException e) {
    System.err.println("[WARN] logging not available, logging will not be configured");
  }
}
origin: thorntail/thorntail

public static String downloadTimestampVersion(String artifact, String metadataSrc) throws IOException, XPathExpressionException {
  final URL url = new URL(metadataSrc);
  final URLConnection connection = MavenSettings.getSettings().openConnection(url);
  boolean message = Boolean.getBoolean("maven.download.message");
  try (InputStream is = connection.getInputStream()) {
    if (message) {
      LOGGER.trace("Downloading maven-metadata.xml for " + artifact);
    }
    return snapshotVersionXpath.evaluate(new InputSource(is));
  }
}
origin: org.wildfly.swarm/container-runtime

content.get(HASH).set(hash);
BootstrapLogger.logger("org.wildfly.swarm.runtime.deployer")
    .info("deploying " + deployment.getName());
System.setProperty(SwarmInternalProperties.CURRENT_DEPLOYMENT, deployment.getName());
try {
origin: wildfly-swarm-archive/ARCHIVE-wildfly-swarm

void apply(ModuleSpec.Builder builder, MavenArtifactDescriptor entry) throws IOException {
  File artifact = MavenResolvers.get().resolveJarArtifact(entry.mscCoordinates());
  if (artifact == null) {
    throw new IOException("Unable to locate artifact: " + entry.mscGav());
  }
  if (LOG.isTraceEnabled()) {
    LOG.trace("adding bootstrap artifact: " + artifact.getAbsolutePath());
  }
  builder.addResourceRoot(
      ResourceLoaderSpec.createResourceLoaderSpec(
          ResourceLoaders.createJarResourceLoader(artifact.getName(), new JarFile(artifact))
      )
  );
}
origin: org.wildfly.swarm/container-runtime

if (LOG.isDebugEnabled()) {
  LOG.debug(bootstrapOperations);
origin: wildfly-swarm-archive/ARCHIVE-wildfly-swarm

@SuppressWarnings("unused")
public RuntimeServer() {
  try {
    Module loggingModule = Module.getBootModuleLoader().loadModule(ModuleIdentifier.create("org.wildfly.swarm.logging", "runtime"));
    ClassLoader originalCl = Thread.currentThread().getContextClassLoader();
    try {
      Thread.currentThread().setContextClassLoader(loggingModule.getClassLoader());
      System.setProperty("java.util.logging.manager", "org.jboss.logmanager.LogManager");
      System.setProperty("org.jboss.logmanager.configurator", LoggingConfigurator.class.getName());
      //force logging init
      LogManager.getLogManager();
      BootstrapLogger.setBackingLoggerManager(new JBossLoggingManager());
    } finally {
      Thread.currentThread().setContextClassLoader(originalCl);
    }
  } catch (ModuleLoadException e) {
    System.err.println("[WARN] logging not available, logging will not be configured");
  }
}
origin: thorntail/thorntail

public static void downloadFile(String artifact, String src, File dest) throws IOException {
  if (dest.exists()) {
    return;
  }
  final URL url = new URL(src);
  final URLConnection connection = MavenSettings.getSettings().openConnection(url);
  boolean message = Boolean.getBoolean("maven.download.message");
  try (InputStream bis = connection.getInputStream()) {
    dest.getParentFile().mkdirs();
    if (message) {
      LOGGER.trace("Downloading " + artifact);
    }
    Files.copy(bis, dest.toPath(), StandardCopyOption.REPLACE_EXISTING);
  }
}
origin: io.thorntail/container

BootstrapLogger.logger("org.wildfly.swarm.runtime.deployer")
    .info("deploying " + deployment.getName());
System.setProperty(SwarmInternalProperties.CURRENT_DEPLOYMENT, deployment.getName());
try {
origin: wildfly-swarm-archive/ARCHIVE-wildfly-swarm

final String path = "modules/" + identifier.getName().replace('.', '/') + "/" + identifier.getSlot() + "/module.xml";
if (LOG.isTraceEnabled()) {
  LOG.trace("attempt:" + identifier);
  if (LOG.isTraceEnabled()) {
    LOG.trace("classloader: " + cl);
    LOG.trace("path: " + path);
    if (LOG.isTraceEnabled()) {
      LOG.trace("not found: " + identifier);
  if (LOG.isTraceEnabled()) {
    LOG.trace("base of " + identifier + ": " + base);
origin: thorntail/thorntail

public void trace(Object message) {
  getBackingLogger().trace(message);
}
origin: wildfly-swarm-archive/ARCHIVE-wildfly-swarm

try {
  if (Layout.getInstance().isUberJar()) {
    if (LOG.isDebugEnabled()) {
      LOG.debug("Loading as uberjar");
    if (LOG.isDebugEnabled()) {
      LOG.debug("Loading as non-ubjerjar");
origin: thorntail/thorntail

  BootstrapLogger.setBackingLoggerManager((BackingLoggerManager) logManagerClass.newInstance());
} finally {
  Thread.currentThread().setContextClassLoader(originalCl);
origin: wildfly-swarm-archive/ARCHIVE-wildfly-swarm

public static BootstrapLogger logger(String name) {
  synchronized (LOGGERS) {
    BootstrapLogger logger = LOGGERS.get(name);
    if (logger == null) {
      logger = new BootstrapLogger(name);
      LOGGERS.put(name, logger);
    }
    return logger;
  }
}
origin: wildfly-swarm-archive/ARCHIVE-wildfly-swarm

public String toString() {
  return "[" + this.name + ": " + this.getLevel() + "]";
}
org.wildfly.swarm.bootstrap.loggingBootstrapLogger

Most used methods

  • info
  • logger
  • setBackingLoggerManager
  • <init>
  • debug
  • getBackingLogger
  • getLevel
  • isDebugEnabled
  • isTraceEnabled
  • trace
  • error
  • warn
  • error,
  • warn

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Table (org.hibernate.mapping)
    A relational table
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now