Package org.slf4j

Examples of org.slf4j.Logger.info()


 
  public RecursiveAppender() {
    System.out.println("in RecursiveAppender constructor");
    Logger logger = LoggerFactory.getLogger("RecursiveAppender"+diff);
    System.out.println("logger class="+logger.getClass().getName());
    logger.info("Calling a logger in the constructor");
  }
 
  protected void append(LoggingEvent arg0) {
  }
View Full Code Here


  }

  public void testLog4j() {
    Logger logger = LoggerFactory.getLogger("x"+diff);
    System.out.println("logger class="+logger.getClass().getName());
    logger.info("hello");
  }

}
View Full Code Here

  private BundleContext m_context = null;

  public void start(BundleContext context) {
    Logger logger = LoggerFactory.getLogger(this.getClass());
    logger.info("Activator.start()");
    m_context = context;
  }

  public void stop(BundleContext context) {
    m_context = null;
View Full Code Here

  }

  public void stop(BundleContext context) {
    m_context = null;
    Logger logger = LoggerFactory.getLogger(this.getClass());
    logger.info("Activator.stop");
  }

  public Bundle[] getBundles() {
    if (m_context != null) {
      return m_context.getBundles();
View Full Code Here

@Test
public class PropertyComparatorTest {

  public void testSingleProperty() {
    Logger logger = LoggerFactory.getLogger(PropertyComparatorTest.class);
    logger.info("dd");
  }
}
View Full Code Here

    private void initializeLogbackManager(boolean immediateInit) throws InvalidSyntaxException {
        logManager = new LogbackManager(context);
       
        final Logger log = LoggerFactory.getLogger(getClass());
        if(immediateInit) {
            log.info("LogbackManager initialized at bundle startup");
        } else {
            log.info("LogbackManager initialized after waiting for Slf4j, {} msec after startup", System.currentTimeMillis() - startTime);
        }
    }
View Full Code Here

       
        final Logger log = LoggerFactory.getLogger(getClass());
        if(immediateInit) {
            log.info("LogbackManager initialized at bundle startup");
        } else {
            log.info("LogbackManager initialized after waiting for Slf4j, {} msec after startup", System.currentTimeMillis() - startTime);
        }
    }

    private class LogbackInitializerTask extends TimerTask{
        public LogbackInitializerTask() {
View Full Code Here

        //otherwise make it part of 'normal' logs
        if (!initSuccess) {
            System.out.println(sb.toString());
        } else {
            Logger logger = LoggerFactory.getLogger(SlingStatusPrinter.class);
            logger.info(sb.toString());
        }
    }
}
View Full Code Here

        switch (logEntry.getLevel()) {
            case LogService.LOG_DEBUG:
                log.debug(message, exception);
                break;
            case LogService.LOG_INFO:
                log.info(message, exception);
                break;
            case LogService.LOG_WARNING:
                log.warn(message, exception);
                break;
            case LogService.LOG_ERROR:
View Full Code Here

      if (user.getBlocked()) {
        return LoginResult.BLOCKED;
      }
      String actualLogin = user.getUid();
      if (logger.isInfoEnabled())
        logger.info("Login success: " + actualLogin); //$NON-NLS-1$
      req.getSession().setAttribute("user", actualLogin); //$NON-NLS-1$

      IOrionUserProfileNode userProfileNode = getUserProfileService().getUserProfileNode(actualLogin, IOrionUserProfileConstants.GENERAL_PROFILE_PART);
      try {
        // try to store the login timestamp in the user profile
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.