Tabnine Logo
JoyPaths.initLogger
Code IndexAdd Tabnine to your IDE (free)

How to use
initLogger
method
in
jodd.joy.JoyPaths

Best Java code snippets using jodd.joy.JoyPaths.initLogger (Showing top 2 results out of 315)

origin: oblac/jodd

@Override
public void start() {
  initLogger();
  final String resourceName = StringUtil.replaceChar(JoyPaths.class.getName(), '.', '/') + ".class";
  URL url = ClassLoaderUtil.getResourceUrl(resourceName);
  if (url == null) {
    throw new JoyException("Failed to resolve app dir, missing: " + resourceName);
  }
  final String protocol = url.getProtocol();
  if (!protocol.equals("file")) {
    try {
      url = new URL(url.getFile());
    } catch (MalformedURLException ignore) {
    }
  }
  appDir = url.getFile();
  final int ndx = appDir.indexOf("WEB-INF");
  appDir = (ndx > 0) ? appDir.substring(0, ndx) : SystemUtil.info().getWorkingDir();
  System.setProperty(APP_DIR, appDir);
  log.info("Application folder: " + appDir);
}
origin: org.jodd/jodd-joy

@Override
public void start() {
  initLogger();
  final String resourceName = StringUtil.replaceChar(JoyPaths.class.getName(), '.', '/') + ".class";
  URL url = ClassLoaderUtil.getResourceUrl(resourceName);
  if (url == null) {
    throw new JoyException("Failed to resolve app dir, missing: " + resourceName);
  }
  final String protocol = url.getProtocol();
  if (!protocol.equals("file")) {
    try {
      url = new URL(url.getFile());
    } catch (MalformedURLException ignore) {
    }
  }
  appDir = url.getFile();
  final int ndx = appDir.indexOf("WEB-INF");
  appDir = (ndx > 0) ? appDir.substring(0, ndx) : SystemUtil.info().getWorkingDir();
  System.setProperty(APP_DIR, appDir);
  log.info("Application folder: " + appDir);
}
jodd.joyJoyPathsinitLogger

Popular methods of JoyPaths

  • <init>
  • getAppDir
    Returns resolved app dir.
  • requireStarted
  • start

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • setScale (BigDecimal)
  • findViewById (Activity)
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Reference (javax.naming)
  • JFrame (javax.swing)
  • From CI to AI: The AI layer in your organization
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