Tabnine Logo
BatfishLogger.getLogLevel
Code IndexAdd Tabnine to your IDE (free)

How to use
getLogLevel
method
in
org.batfish.common.BatfishLogger

Best Java code snippets using org.batfish.common.BatfishLogger.getLogLevel (Showing top 4 results out of 315)

origin: batfish/batfish

public void setLogLevel(String levelStr) {
 _level = getLogLevel(levelStr);
}
origin: batfish/batfish

<
    JobResultT extends BatfishJobResult<OutputT, AnswerElementT>,
    AnswerElementT extends AnswerElement,
    OutputT>
  String getFailureMessage(JobResultT result) {
 String time = CommonUtil.getTime(result.getElapsedTime());
 String failureMessage =
   String.format(
     "Failure running job after elapsed time: %s\n-----"
       + "BEGIN JOB LOG-----\n%s\n-----END JOB LOG-----",
     time, result.getHistory().toString(BatfishLogger.getLogLevel(_settings.getLogLevel())));
 return failureMessage;
}
origin: batfish/batfish

private void printWorkStatusResponse(
  Pair<WorkStatusCode, String> response, boolean unconditionalPrint) {
 if (unconditionalPrint || _logger.getLogLevel() >= BatfishLogger.LEVEL_INFO) {
  WorkStatusCode status = response.getFirst();
  _logger.outputf("status: %s\n", status);
origin: batfish/batfish

 if (_logger.getLogLevel() >= BatfishLogger.LEVEL_DEBUG) {
  try {
   ObjectMapper reader = BatfishObjectMapper.mapper();
if (_logger.getLogLevel() >= BatfishLogger.LEVEL_DEBUG) {
 _logger.output("---------------- Service Log --------------\n");
 String logFileName = wItem.getId() + BfConsts.SUFFIX_LOG_FILE;
org.batfish.commonBatfishLoggergetLogLevel

Popular methods of BatfishLogger

  • <init>
  • debugf
  • errorf
  • info
  • error
  • infof
  • warnf
  • debug
  • getLogLevelStr
  • output
  • append
  • getHistory
  • append,
  • getHistory,
  • isActive,
  • setLogLevel,
  • warn,
  • close,
  • getElapsedTime,
  • getPrintStream,
  • getRotatedLogFilename

Popular in Java

  • Reactive rest calls using spring rest template
  • getSystemService (Context)
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JPanel (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Github Copilot alternatives
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