Package org.exoplatform.services.log

Examples of org.exoplatform.services.log.LogConfigurationInitializer


            holder), holder, null);

      Properties logProps = new Properties();
      logProps.put("org.apache.commons.logging.simplelog.defaultlog", "debug");

      new LogConfigurationInitializer("org.exoplatform.services.log.impl.BufferedSimpleLog",
         "org.exoplatform.services.log.impl.SimpleLogConfigurator", logProps);

   }
View Full Code Here


      props.put("log4j.appender.file.layout", "org.apache.log4j.PatternLayout");
      props.put("log4j.appender.file.layout.ConversionPattern",
         "%d{dd.MM.yyyy HH:mm:ss} *%-5p* [%t] %c{1}: %m (%F, line %L) %n");

      LogConfigurationInitializer initializer = new LogConfigurationInitializer(logger, confClass, props);

      log.info("Performance test.");
   }
View Full Code Here

      props.put("log4j.appender.file.layout", "org.apache.log4j.PatternLayout");
      props.put("log4j.appender.file.layout.ConversionPattern",
         "%d{dd.MM.yyyy HH:mm:ss} *%-5p* [%t] %c{1}: %m (%F, line %L) %n");

      LogConfigurationInitializer initializer = new LogConfigurationInitializer(logger, confClass, props);
      log.info("LOG4J Tests");
      logOut(log);

      initializer.setProperty("log4j.rootLogger", "INFO, stdout, file");
      initializer.setProperty("log4j.appender.file.File", "target/l4j_debg.log");

      logOut(log);

   }
View Full Code Here

      props.put(".level", "INFO");
      props.put("java.util.logging.ConsoleHandler.level", "ALL");
      props.put("java.util.logging.FileHandler.pattern", "./target/java%u.log");
      props.put("java.util.logging.FileHandler.formatter", "java.util.logging.SimpleFormatter");

      LogConfigurationInitializer initializer = new LogConfigurationInitializer(logger, confClass, props);
      Log log = ExoLogger.getLogger(TestLoggers.class);

      log.info("JCL Tests");
      logOut(log);
View Full Code Here

      props.put("log4j.appender.file.layout", "org.apache.log4j.PatternLayout");
      props.put("log4j.appender.file.layout.ConversionPattern",
         "%d{dd.MM.yyyy HH:mm:ss} *%-5p* [%t] %c{1}: %m (%F, line %L) %n");

      new LogConfigurationInitializer(logger, confClass, props);

      log.info("Performance test.");
   }
View Full Code Here

      props.put("log4j.appender.file.layout", "org.apache.log4j.PatternLayout");
      props.put("log4j.appender.file.layout.ConversionPattern",
         "%d{dd.MM.yyyy HH:mm:ss} *%-5p* [%t] %c{1}: %m (%F, line %L) %n");

      LogConfigurationInitializer initializer = new LogConfigurationInitializer(logger, confClass, props);
      log.info("LOG4J Tests");
      logOut(log);

      initializer.setProperty("log4j.rootLogger", "INFO, stdout, file");
      initializer.setProperty("log4j.appender.file.File", "target/l4j_debg.log");

      logOut(log);

   }
View Full Code Here

      props.put(".level", "INFO");
      props.put("java.util.logging.ConsoleHandler.level", "ALL");
      props.put("java.util.logging.FileHandler.pattern", "./target/java%u.log");
      props.put("java.util.logging.FileHandler.formatter", "java.util.logging.SimpleFormatter");

      new LogConfigurationInitializer(logger, confClass, props);
      Log log = ExoLogger.getLogger(TestLoggers.class);

      log.info("JCL Tests");
      logOut(log);
View Full Code Here

            cleanerHolder), null, cleanerHolder);

      Properties logProps = new Properties();
      logProps.put("org.apache.commons.logging.simplelog.defaultlog", "debug");

      new LogConfigurationInitializer("org.exoplatform.services.log.impl.BufferedSimpleLog",
         "org.exoplatform.services.log.impl.SimpleLogConfigurator", logProps);

   }
View Full Code Here

            cleanerHolder), null, cleanerHolder);

      Properties logProps = new Properties();
      logProps.put("org.apache.commons.logging.simplelog.defaultlog", "debug");

      new LogConfigurationInitializer("org.exoplatform.services.log.impl.BufferedSimpleLog",
         "org.exoplatform.services.log.impl.SimpleLogConfigurator", logProps);

   }
View Full Code Here

TOP

Related Classes of org.exoplatform.services.log.LogConfigurationInitializer

Copyright © 2018 www.massapicom. 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.