Tabnine Logo
ILogManager.getLog
Code IndexAdd Tabnine to your IDE (free)

How to use
getLog
method
in
com.norconex.jef4.log.ILogManager

Best Java code snippets using com.norconex.jef4.log.ILogManager.getLog (Showing top 1 results out of 315)

origin: com.norconex.jef/norconex-jef

  /**
   * Gets the last lines from a suite log.
   * @param suite the suite to extract the log from
   * @param lineQty the number of lines to retrieve
   * @return string representation of log last lines
   * @throws IOException problem getting lines
   */
  @SuppressWarnings("nls")
  protected final String getLogTail(final JobSuite suite, final int lineQty)
      throws IOException {
    StringBuffer logTail = new StringBuffer();
    String[] lines = IOUtil.tail(
        suite.getLogManager().getLog(suite.getId()), lineQty);
    if (lines.length == 0) {
      logTail.append("*** No log found. ***\n");
    } else {
      for (int i = 0; i < lines.length; i++) {
        String line = lines[i];
        logTail.append(line);
        logTail.append('\n');
      }
    }
    return logTail.toString();
  }
}
com.norconex.jef4.logILogManagergetLog

Javadoc

Gets the log for the given namespace.

Popular methods of ILogManager

  • backup
    Backups the log for the given name space, and time stamps it with the given date. A backed-up log ca
  • createAppender
    Creates a Log4J appender for the given name space.
  • saveToXML

Popular in Java

  • Reactive rest calls using spring rest template
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • setContentView (Activity)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Permission (java.security)
    Legacy security code; do not use.
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JFileChooser (javax.swing)
  • Top plugins for Android Studio
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