org.esupportail.commons.services.logging.Logger.info()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(8.8k)|赞(0)|评价(0)|浏览(215)

本文整理了Java中org.esupportail.commons.services.logging.Logger.info()方法的一些代码示例,展示了Logger.info()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.info()方法的具体详情如下:
包路径:org.esupportail.commons.services.logging.Logger
类名称:Logger
方法名:info

Logger.info介绍

暂无

代码示例

代码示例来源:origin: org.esupportail/esup-commons2-hibernate

  1. /**
  2. * Update the database.
  3. * @throws ConfigException
  4. */
  5. public static void update() throws ConfigException {
  6. LOG.info("updating the database, please wait...");
  7. LOG.info("this operation may take from a few seconds to a couple of hours for huge migrations.");
  8. LOG.info("do not interrupt!");
  9. getDatabaseManagerStore().update();
  10. LOG.info("done.");
  11. }

代码示例来源:origin: org.esupportail/esup-commons2-hibernate

  1. /**
  2. * Create the database.
  3. * @throws ConfigException
  4. */
  5. public static void create() throws ConfigException {
  6. LOG.info("creating the databases, please wait...");
  7. LOG.info("this operation may take a few minutes, do not interrupt!");
  8. getDatabaseManagerStore().create();
  9. LOG.info("done.");
  10. }

代码示例来源:origin: org.esupportail/esup-commons2-hibernate

  1. /**
  2. * Test the database.
  3. * @throws ConfigException
  4. */
  5. public static void test() throws ConfigException {
  6. LOG.info("testing the databases, please wait...");
  7. getDatabaseManagerStore().test();
  8. LOG.info("done.");
  9. }

代码示例来源:origin: org.esupportail/esup-commons2-exceptionHandling

  1. @Override
  2. public void afterPropertiesSet() {
  3. super.afterPropertiesSet();
  4. Assert.notNull(this.smtpService,
  5. "property smtpService of class " + this.getClass().getName() + " can not be null");
  6. if (!StringUtils.hasText(recipientEmail)) {
  7. recipientEmail = null;
  8. logger.info(this.getClass().getName() + ".recipientEmail is null, no email will be sent.");
  9. } else {
  10. // test if the address is well-formed
  11. try {
  12. new InternetAddress(this.recipientEmail);
  13. } catch (AddressException e) {
  14. throw new IllegalArgumentException(
  15. getClass() + ".recipientEmail '"
  16. + this.recipientEmail + "' is not a valid email address");
  17. }
  18. }
  19. }

代码示例来源:origin: org.esupportail/esup-commons2-web

  1. /**
  2. * Print the application name and version to a properties file.
  3. * @param path the path of the file to write
  4. * @throws IOException
  5. * @throws ConfigException
  6. */
  7. private static void print(final String path) throws IOException, ConfigException {
  8. File file = new File(path);
  9. if (file.exists() && !file.delete()) {
  10. throw new IOException("could not delete [" + path + "]");
  11. }
  12. FileWriter out = new FileWriter(file);
  13. out.write("#\n");
  14. out.write("# " + path + "\n");
  15. out.write("#\n");
  16. out.write("# This file was generated by ant target _print-application-properties,\n");
  17. out.write("# do not edit manually\n");
  18. out.write("#\n");
  19. out.write("\n");
  20. ApplicationService applicationService = ApplicationUtils.createApplicationService();
  21. out.write("app.name=" + applicationService.getName() + "\n");
  22. out.write("app.version=" + applicationService.getVersion() + "\n");
  23. out.write("app.copyright=" + applicationService.getCopyright() + "\n");
  24. out.close();
  25. LOG.info("wrote [" + path + "].");
  26. }

代码示例来源:origin: org.esupportail/esup-commons2-web

  1. /**
  2. * Print the application name and version to a properties file.
  3. * @param path the path of the file to write
  4. * @throws IOException
  5. * @throws ConfigException
  6. */
  7. private static void print(final String path) throws IOException, ConfigException {
  8. File file = new File(path);
  9. if (file.exists() && !file.delete()) {
  10. throw new IOException("could not delete [" + path + "]");
  11. }
  12. FileWriter out = new FileWriter(file);
  13. // out.write("#\n");
  14. // out.write("# " + path + "\n");
  15. // out.write("#\n");
  16. // out.write("# This file was generated by ant target _print-manifest,\n");
  17. // out.write("# do not edit manually\n");
  18. // out.write("#\n");
  19. out.write("Manifest-Version: 1.0\n");
  20. ApplicationService applicationService = ApplicationUtils.createApplicationService();
  21. out.write("Implementation-Title: " + applicationService.getName() + "\n");
  22. out.write("Implementation-Version: " + applicationService.getVersion() + "\n");
  23. out.write("Implementation-Vendor: " + applicationService.getVendor() + "\n");
  24. out.close();
  25. LOG.info("wrote [" + path + "].");
  26. }

代码示例来源:origin: org.esupportail/esup-commons2-dao

  1. /**
  2. * @return the hql request.
  3. */
  4. public String buildHql() {
  5. if (log.isDebugEnabled()) {
  6. log.debug("entering HqlQueryPojo.buildHql()");
  7. }
  8. StringBuilder hql = new StringBuilder();
  9. hql.append(appendHql(select, "SELECT ", ", "));
  10. hql.append(appendHql(from, " FROM ", ", "));
  11. hql.append(appendHql(where, " WHERE ", " AND "));
  12. log.info("exiting HqlQueryPojo.buildHql() with hql = " + hql.toString());
  13. return hql.toString();
  14. }

代码示例来源:origin: org.esupportail/esup-commons2-exceptionHandling

  1. @Override
  2. public void afterPropertiesSet() {
  3. super.afterPropertiesSet();
  4. if (!StringUtils.hasText(cacheName)) {
  5. setDefaultCacheName();
  6. logger.info(getClass() + ": no cacheName attribute set, '"
  7. + cacheName + "' will be used");
  8. }
  9. Assert.notNull(cacheManager,
  10. "property cacheManager of class " + getClass().getName()
  11. + " can not be null");
  12. if (!cacheManager.cacheExists(cacheName)) {
  13. cacheManager.addCache(cacheName);
  14. }
  15. cache = cacheManager.getCache(cacheName);
  16. }

代码示例来源:origin: org.esupportail/esup-opi-domain-beans

  1. /**
  2. * @return the candidats
  3. */
  4. public Map<Individu, Date> getDateParCandidat() {
  5. if (dateParCandidat == null) {
  6. logger.debug("Dans getDateParCandidat : " + dateParCandidat);
  7. dateParCandidat = new HashMap<Individu, Date>();
  8. for (IndividuDate indDate : candidats) {
  9. if (!dateParCandidat.containsKey(indDate.getCandidat())
  10. && indDate.getDateRdv().after(new Date())) {
  11. dateParCandidat.put(indDate.getCandidat(), indDate.getDateRdv());
  12. }
  13. }
  14. logger.info("En fin de getDateParCandidat : " + dateParCandidat);
  15. }
  16. return dateParCandidat;
  17. }

代码示例来源:origin: org.esupportail/esup-commons2-annotations

  1. /**
  2. * Print a log report.
  3. * @param startTime
  4. * @param message
  5. */
  6. public void printLogReport(
  7. final long startTime,
  8. final String message) {
  9. long time = System.currentTimeMillis() - startTime;
  10. logger.info(
  11. "===================================================================== "
  12. + message + "\nTOTAL TIME[" + time + "]");
  13. if (this.isEmpty()) {
  14. logger.info("no method call recorded.");
  15. return;
  16. }
  17. Set<MonitoringMethodCall> sortedSet = new TreeSet<MonitoringMethodCall>();
  18. sortedSet.addAll(values());
  19. String previousClassName = null;
  20. for (MonitoringMethodCall call : sortedSet) {
  21. if (!call.getClassName().equals(previousClassName)) {
  22. logger.info("---------------- " + call.getClassName());
  23. previousClassName = call.getClassName();
  24. }
  25. logger.info(call.getTimes() + " " + call.getMethodName() + " " + call.getFullString());
  26. }
  27. }

代码示例来源:origin: org.esupportail/esup-opi-domain-beans

  1. && this.getCandidatsAsMap().get(date).keySet().size()
  2. >= this.getNbreMaxEtud()) {
  3. logger.info("Le creneau " + date.toString()
  4. + "est plein ! On ne propose pas cette date !");
  5. if (!etudiant) {

代码示例来源:origin: org.esupportail/esup-opi-domain-beans

  1. debMatin.setTime(cal.getTime());
  2. logger.info("Horaires : " + getHoraires());
  3. logger.info("Le creneau " + date.toString()
  4. + "est plein ! On ne propose pas cette date !");
  5. if (!etudiant) {

代码示例来源:origin: org.esupportail/esup-opi-domain-beans

  1. logger.info("Recherche des dates dispo depuis " + sdf.format(cal.getTime()).toString());
  2. logger.info("Dates fermees : " + it.next());
  3. logger.info(date.toString());
  4. if (getTranchesFermees().containsKey(date)) {
  5. logger.debug("C'est un jour comprenant une tranche fermee");
  6. logger.info("C'est un jour ferme");
  7. } else if (tmp.isMatin()) {
  8. logger.info("C'est un matin ferme");
  9. List<Date> dates = getCreneauxAmidi(etudiant, cal);
  10. incrementer = !dates.isEmpty();
  11. liste.addAll(dates);
  12. } else if (tmp.isAprem()) {
  13. logger.info("C'est une aprem fermee");
  14. List<Date> dates = getCreneauxMatin(etudiant, cal);
  15. incrementer = !dates.isEmpty();

代码示例来源:origin: org.esupportail/esup-commons2-exceptionHandling

  1. /**
  2. * Log a text report.
  3. * @param t
  4. * @param textReport
  5. */
  6. protected void logTextReport(final Throwable t, final String textReport) {
  7. if (SimpleExceptionServiceFactoryImpl.ERROR.equals(logLevel.toLowerCase())) {
  8. logger.error(textReport);
  9. } else if (SimpleExceptionServiceFactoryImpl.WARN.equals(logLevel.toLowerCase())) {
  10. logger.error(ExceptionUtils.getShortPrintableStackTrace(t));
  11. logger.warn(textReport);
  12. } else if (SimpleExceptionServiceFactoryImpl.INFO.equals(logLevel.toLowerCase())) {
  13. logger.error(ExceptionUtils.getShortPrintableStackTrace(t));
  14. logger.info(textReport);
  15. } else if (SimpleExceptionServiceFactoryImpl.TRACE.equals(logLevel.toLowerCase())) {
  16. logger.error(ExceptionUtils.getShortPrintableStackTrace(t));
  17. if (logger.isTraceEnabled()) {
  18. logger.trace(textReport);
  19. }
  20. } else {
  21. logger.error(ExceptionUtils.getShortPrintableStackTrace(t));
  22. if (logger.isDebugEnabled()) {
  23. logger.debug(textReport);
  24. }
  25. }
  26. }

代码示例来源:origin: org.esupportail/ects-domain-services

  1. logger.info("userApo = " + userApo.getCodUti());
  2. } else {
  3. logger.info("userApo = null");

相关文章