本文整理了Java中org.esupportail.commons.services.logging.Logger.info()
方法的一些代码示例,展示了Logger.info()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.info()
方法的具体详情如下:
包路径:org.esupportail.commons.services.logging.Logger
类名称:Logger
方法名:info
暂无
代码示例来源:origin: org.esupportail/esup-commons2-hibernate
/**
* Update the database.
* @throws ConfigException
*/
public static void update() throws ConfigException {
LOG.info("updating the database, please wait...");
LOG.info("this operation may take from a few seconds to a couple of hours for huge migrations.");
LOG.info("do not interrupt!");
getDatabaseManagerStore().update();
LOG.info("done.");
}
代码示例来源:origin: org.esupportail/esup-commons2-hibernate
/**
* Create the database.
* @throws ConfigException
*/
public static void create() throws ConfigException {
LOG.info("creating the databases, please wait...");
LOG.info("this operation may take a few minutes, do not interrupt!");
getDatabaseManagerStore().create();
LOG.info("done.");
}
代码示例来源:origin: org.esupportail/esup-commons2-hibernate
/**
* Test the database.
* @throws ConfigException
*/
public static void test() throws ConfigException {
LOG.info("testing the databases, please wait...");
getDatabaseManagerStore().test();
LOG.info("done.");
}
代码示例来源:origin: org.esupportail/esup-commons2-exceptionHandling
@Override
public void afterPropertiesSet() {
super.afterPropertiesSet();
Assert.notNull(this.smtpService,
"property smtpService of class " + this.getClass().getName() + " can not be null");
if (!StringUtils.hasText(recipientEmail)) {
recipientEmail = null;
logger.info(this.getClass().getName() + ".recipientEmail is null, no email will be sent.");
} else {
// test if the address is well-formed
try {
new InternetAddress(this.recipientEmail);
} catch (AddressException e) {
throw new IllegalArgumentException(
getClass() + ".recipientEmail '"
+ this.recipientEmail + "' is not a valid email address");
}
}
}
代码示例来源:origin: org.esupportail/esup-commons2-web
/**
* Print the application name and version to a properties file.
* @param path the path of the file to write
* @throws IOException
* @throws ConfigException
*/
private static void print(final String path) throws IOException, ConfigException {
File file = new File(path);
if (file.exists() && !file.delete()) {
throw new IOException("could not delete [" + path + "]");
}
FileWriter out = new FileWriter(file);
out.write("#\n");
out.write("# " + path + "\n");
out.write("#\n");
out.write("# This file was generated by ant target _print-application-properties,\n");
out.write("# do not edit manually\n");
out.write("#\n");
out.write("\n");
ApplicationService applicationService = ApplicationUtils.createApplicationService();
out.write("app.name=" + applicationService.getName() + "\n");
out.write("app.version=" + applicationService.getVersion() + "\n");
out.write("app.copyright=" + applicationService.getCopyright() + "\n");
out.close();
LOG.info("wrote [" + path + "].");
}
代码示例来源:origin: org.esupportail/esup-commons2-web
/**
* Print the application name and version to a properties file.
* @param path the path of the file to write
* @throws IOException
* @throws ConfigException
*/
private static void print(final String path) throws IOException, ConfigException {
File file = new File(path);
if (file.exists() && !file.delete()) {
throw new IOException("could not delete [" + path + "]");
}
FileWriter out = new FileWriter(file);
// out.write("#\n");
// out.write("# " + path + "\n");
// out.write("#\n");
// out.write("# This file was generated by ant target _print-manifest,\n");
// out.write("# do not edit manually\n");
// out.write("#\n");
out.write("Manifest-Version: 1.0\n");
ApplicationService applicationService = ApplicationUtils.createApplicationService();
out.write("Implementation-Title: " + applicationService.getName() + "\n");
out.write("Implementation-Version: " + applicationService.getVersion() + "\n");
out.write("Implementation-Vendor: " + applicationService.getVendor() + "\n");
out.close();
LOG.info("wrote [" + path + "].");
}
代码示例来源:origin: org.esupportail/esup-commons2-dao
/**
* @return the hql request.
*/
public String buildHql() {
if (log.isDebugEnabled()) {
log.debug("entering HqlQueryPojo.buildHql()");
}
StringBuilder hql = new StringBuilder();
hql.append(appendHql(select, "SELECT ", ", "));
hql.append(appendHql(from, " FROM ", ", "));
hql.append(appendHql(where, " WHERE ", " AND "));
log.info("exiting HqlQueryPojo.buildHql() with hql = " + hql.toString());
return hql.toString();
}
代码示例来源:origin: org.esupportail/esup-commons2-exceptionHandling
@Override
public void afterPropertiesSet() {
super.afterPropertiesSet();
if (!StringUtils.hasText(cacheName)) {
setDefaultCacheName();
logger.info(getClass() + ": no cacheName attribute set, '"
+ cacheName + "' will be used");
}
Assert.notNull(cacheManager,
"property cacheManager of class " + getClass().getName()
+ " can not be null");
if (!cacheManager.cacheExists(cacheName)) {
cacheManager.addCache(cacheName);
}
cache = cacheManager.getCache(cacheName);
}
代码示例来源:origin: org.esupportail/esup-opi-domain-beans
/**
* @return the candidats
*/
public Map<Individu, Date> getDateParCandidat() {
if (dateParCandidat == null) {
logger.debug("Dans getDateParCandidat : " + dateParCandidat);
dateParCandidat = new HashMap<Individu, Date>();
for (IndividuDate indDate : candidats) {
if (!dateParCandidat.containsKey(indDate.getCandidat())
&& indDate.getDateRdv().after(new Date())) {
dateParCandidat.put(indDate.getCandidat(), indDate.getDateRdv());
}
}
logger.info("En fin de getDateParCandidat : " + dateParCandidat);
}
return dateParCandidat;
}
代码示例来源:origin: org.esupportail/esup-commons2-annotations
/**
* Print a log report.
* @param startTime
* @param message
*/
public void printLogReport(
final long startTime,
final String message) {
long time = System.currentTimeMillis() - startTime;
logger.info(
"===================================================================== "
+ message + "\nTOTAL TIME[" + time + "]");
if (this.isEmpty()) {
logger.info("no method call recorded.");
return;
}
Set<MonitoringMethodCall> sortedSet = new TreeSet<MonitoringMethodCall>();
sortedSet.addAll(values());
String previousClassName = null;
for (MonitoringMethodCall call : sortedSet) {
if (!call.getClassName().equals(previousClassName)) {
logger.info("---------------- " + call.getClassName());
previousClassName = call.getClassName();
}
logger.info(call.getTimes() + " " + call.getMethodName() + " " + call.getFullString());
}
}
代码示例来源:origin: org.esupportail/esup-opi-domain-beans
&& this.getCandidatsAsMap().get(date).keySet().size()
>= this.getNbreMaxEtud()) {
logger.info("Le creneau " + date.toString()
+ "est plein ! On ne propose pas cette date !");
if (!etudiant) {
代码示例来源:origin: org.esupportail/esup-opi-domain-beans
debMatin.setTime(cal.getTime());
logger.info("Horaires : " + getHoraires());
logger.info("Le creneau " + date.toString()
+ "est plein ! On ne propose pas cette date !");
if (!etudiant) {
代码示例来源:origin: org.esupportail/esup-opi-domain-beans
logger.info("Recherche des dates dispo depuis " + sdf.format(cal.getTime()).toString());
logger.info("Dates fermees : " + it.next());
logger.info(date.toString());
if (getTranchesFermees().containsKey(date)) {
logger.debug("C'est un jour comprenant une tranche fermee");
logger.info("C'est un jour ferme");
} else if (tmp.isMatin()) {
logger.info("C'est un matin ferme");
List<Date> dates = getCreneauxAmidi(etudiant, cal);
incrementer = !dates.isEmpty();
liste.addAll(dates);
} else if (tmp.isAprem()) {
logger.info("C'est une aprem fermee");
List<Date> dates = getCreneauxMatin(etudiant, cal);
incrementer = !dates.isEmpty();
代码示例来源:origin: org.esupportail/esup-commons2-exceptionHandling
/**
* Log a text report.
* @param t
* @param textReport
*/
protected void logTextReport(final Throwable t, final String textReport) {
if (SimpleExceptionServiceFactoryImpl.ERROR.equals(logLevel.toLowerCase())) {
logger.error(textReport);
} else if (SimpleExceptionServiceFactoryImpl.WARN.equals(logLevel.toLowerCase())) {
logger.error(ExceptionUtils.getShortPrintableStackTrace(t));
logger.warn(textReport);
} else if (SimpleExceptionServiceFactoryImpl.INFO.equals(logLevel.toLowerCase())) {
logger.error(ExceptionUtils.getShortPrintableStackTrace(t));
logger.info(textReport);
} else if (SimpleExceptionServiceFactoryImpl.TRACE.equals(logLevel.toLowerCase())) {
logger.error(ExceptionUtils.getShortPrintableStackTrace(t));
if (logger.isTraceEnabled()) {
logger.trace(textReport);
}
} else {
logger.error(ExceptionUtils.getShortPrintableStackTrace(t));
if (logger.isDebugEnabled()) {
logger.debug(textReport);
}
}
}
代码示例来源:origin: org.esupportail/ects-domain-services
logger.info("userApo = " + userApo.getCodUti());
} else {
logger.info("userApo = null");
内容来源于网络,如有侵权,请联系作者删除!