APISonar


org.slf4j.Logger.info

> org > slf4j > Logger > info
org APIs slf4j APIs Logger APIs info APIs

Example 1
private final Logger logger;

    public void info(String string, Throwable thrwbl) {
        if (logger.isDebugEnabled()) {
            logger.info(string, thrwbl);
        } else {
            logger.info(string);
        }
    }
Example 2
private final Logger _loggerImpl;

  public void info(String format, Object obj1, Object obj2)
  {
    if (logAllowed())
    {
      _loggerImpl.info(format, obj1, obj2);
    }
  }
Example 3
private Logger logger;

    private void info(String msg) {
        if (null != logger) {
            logger.info(msg);
        } else {
            System.out.println(msg);
        }
    }
Example 4
private final Logger mDelegate;

  public void info(String format, Object arg) {
    if (isInfoEnabled() && acquireLogPermission(format)) {
      mDelegate.info(format, arg);
    }
  }
Example 5
protected void execute() {

        Logger log = getLogger(loggerName);

        log.info("{}", message.stream().collect(Collectors.joining(" ")));

    }
Example 6
private final Logger log;

  public void close() {
    finished();
    if (logAtInfo) {
      log.info("{}", this);
    } else {
      log.debug("{}", this);
    }
  }
Example 7
private Logger log = null ;  

    protected boolean hasNextBinding()
    { 
        boolean b = super.hasNextBinding() ;
        if ( logging )
            log.info("hasNextBinding: "+b) ;
        return b ;
    }
Example 8
private final Logger log = getLogger(getClass());

    public void activate() {
        atomicCounter = storageService.atomicCounterBuilder()
                                      .withName(SYSTEM_LOGICAL_CLOCK_COUNTER_NAME)
                                      .withPartitionsDisabled()
                                      .build()
                                      .asAtomicCounter();
        log.info("Started");
    }
Example 9
final Logger logger;

    public void run() {
        while (!isDone()) {
            logger.info("hello world ABCDEFGHI");
            counter++;
            // don't hog the CPU forever
            if (counter % burstLength == 0) {
                try {
                    Thread.sleep(1);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }
    }
Example 10
private static final Logger log = LoggerFactory.getLogger("WireMock");

    public void info(String message) {
        if (verbose) {
            log.info(message);
        }
    }
Example 11
private static void _explain(Logger logger, String explanation)
    {
        logger.info(explanation) ;
    }
Example 12
protected final transient Logger log = LoggerFactory.getLogger(getClass());

    protected void doStop() throws Exception {
        // log utilization statistics when stopping, including mappings
        if (statistics.isStatisticsEnabled()) {
            String info = statistics.toString();
            info += String.format(" mappings[total=%s, misses=%s]", typeMappings.size(), misses.size());
            log.info(info);
        }

        typeMappings.clear();
        misses.clear();
        statistics.reset();
    }
Example 13
private static final Logger logger = LoggerFactory.getLogger(DictionaryGenerator.class);

    public static Dictionary<?> buildDictionary(DictionaryInfo info, ReadableTable inpTable) throws IOException {

        // currently all data types are casted to string to build dictionary
        // String dataType = info.getDataType();

        logger.info("Building dictionary " + JsonUtil.writeValueAsString(info));

        ArrayList<byte[]> values = loadColumnValues(inpTable, info.getSourceColumnIndex());

        return buildDictionaryFromValueList(info, values);
    }
Example 14
private static final Logger LOG = LoggerFactory
      .getLogger(MethodHandles.lookup().lookupClass());

  public synchronized void dump() {
    LOG.info("  maxThreads    = " + maxThreads);
    LOG.info("  inProgress    = " + inProgress.get());
    LOG.info("  crawlDelay    = " + crawlDelay);
    LOG.info("  minCrawlDelay = " + minCrawlDelay);
    LOG.info("  nextFetchTime = " + nextFetchTime.get());
    LOG.info("  now           = " + System.currentTimeMillis());
    for (int i = 0; i < queue.size(); i++) {
      FetchItem it = queue.get(i);
      LOG.info("  " + i + ". " + it.url);
    }
  }
Example 15
protected Logger _logger;

  public void shutDown() {
    _logger.info("Shutting down table data manager for table: {}", _tableName);
    if (!_started) {
      _logger.info("Table data manager for table: {} is not running", _tableName);
      return;
    }

    doShutdown();

    _started = false;
    _logger.info("Finish shutting down table data manager for table: {}", _tableName);
  }
Example 16
private final Logger sender;

    public void printRaw(String msg) {
        for (String part : msg.split("\n")) {
            sender.info(part);
        }
    }
Example 17
private Logger logger;

    public void shouldConsumeOnSuccessEvent() throws Throwable {
        rateLimiter.getEventPublisher().onSuccess(
            event -> logger.info(event.getEventType().toString()));

        String result = rateLimiter.executeSupplier(() -> "Hello world");

        assertThat(result).isEqualTo("Hello world");
        then(logger).should(times(1)).info("SUCCESSFUL_ACQUIRE");
    }
Example 18
final Logger log;

    public void closeConnection() {
        log.info("Close Connection for address {} called via JMX", getConnectionAddress());

        mllpBuffer.closeSocket(socket);
    }
Example 19
public static <T> void callQuietly(final Logger log,
      final Invoker.Operation<T> operation) {
    try {
      operation.execute();
    } catch (Exception e) {
      log.info(e.toString(), e);
    }
  }
Example 20
private final Logger log = getLogger(getClass());

    private void stopWatchdog() {
        log.info("Stopping watchdog task");
        if (watchdog != null) {
            watchdog.cancel();
        }
    }
Example 21
private Logger m_log;

	private Reader loadFromFile() throws IOException {
		m_log.info("Loading {} from [{}]", m_desc, m_conf.getConfigFile());
		return loadFromContent();
	}
Example 22
private static final Logger INFO = LoggerFactory.getLogger("org.sonar.INFO");

  public void start() {
    if (realm != null) {
      try {
        INFO.info("Security realm: " + realm.getName());
        realm.init();
        INFO.info("Security realm started");
      } catch (RuntimeException e) {
        if (ignoreStartupFailure) {
          INFO.error("IGNORED - Security realm fails to start: " + e.getMessage());
        } else {
          throw new SonarException("Security realm fails to start: " + e.getMessage(), e);
        }
      }
    }
  }
Example 23
private final Logger log;

    private void history() {
        info("History");
        for ( Pair<Action, Long> p : actions ) {
            if ( p.getRight() != NoId )
                log.info(String.format("%s:     %-12s  %d", label, p.getLeft(), p.getRight()));
            else
                log.info(String.format("%s:     %-12s", label, p.getLeft()));

        }
    }
Example 24
private final Logger log = getLogger(getClass());

    protected void deactivate() {

        bgpSessionManager.stop();
        router.stop();
        peerConnectivity.stop();
        intentSynchronizer.stop();

        leadershipService.withdraw(appId.name());
        leadershipService.removeListener(leadershipEventListener);

        log.info("SDN-IP Stopped");
    }
Example 25
private Logger logger = LoggerFactory.getLogger(getClass());

	public void test() throws FileNotFoundException {

		File f = new File("/opt/logs/test");
		logger.info("[exist]{}", f.exists());
		logger.info("[exist]{}", f.getParent());

		String parent = f.getParent();


	}