List of usage examples for org.apache.maven.plugin.logging Log info
void info(CharSequence content, Throwable error);
From source file:com.github.maven.plugins.core.GitHubProjectMojo.java
License:Open Source License
/** * Log given message and throwable at info level * //from www . j av a 2s. co m * @param message * @param throwable */ protected void info(String message, Throwable throwable) { final Log log = getLog(); if (log != null) log.info(message, throwable); }
From source file:org.acmsl.queryj.tools.maven.AntProjectAdapter.java
License:Open Source License
/** * See {@link Project#log(String, Throwable, int)}. * @param message the message.//from w ww .j a v a 2 s . co m * @param throwable the error. * @param msgLevel either {@link Project#MSG_ERR}, {@link Project#MSG_WARN}, * {@link Project#MSG_INFO}, {@link Project#MSG_VERBOSE}, or {@link Project#MSG_DEBUG}. * @param log the {@link Log} instance. */ protected void log(@NotNull final String message, @NotNull final Throwable throwable, final int msgLevel, @NotNull final Log log) { switch (msgLevel) { case MSG_ERR: log.error(message, throwable); break; case MSG_WARN: log.warn(message, throwable); break; case MSG_VERBOSE: case MSG_DEBUG: log.debug(message, throwable); break; default: log.info(message, throwable); break; } }
From source file:org.acmsl.queryj.tools.maven.AntProjectAdapter.java
License:Open Source License
/** * See {@link Project#log(Task, String, int)}. * @param task the task.//from w ww. jav a 2 s. co m * @param message the message. * @param throwable the error. * @param msgLevel either {@link Project#MSG_ERR}, {@link Project#MSG_WARN}, * {@link Project#MSG_INFO}, {@link Project#MSG_VERBOSE}, or {@link Project#MSG_DEBUG}. * @param log the {@link Log} instance. */ protected void log(@NotNull final Task task, @NotNull final String message, @NotNull final Throwable throwable, final int msgLevel, @NotNull final Log log) { @NotNull final String t_strMessage = "[" + task.getTaskName() + "] " + message; switch (msgLevel) { case MSG_ERR: log.error(t_strMessage, throwable); break; case MSG_WARN: log.warn(t_strMessage, throwable); break; case MSG_VERBOSE: case MSG_DEBUG: log.debug(t_strMessage, throwable); break; default: log.info(t_strMessage, throwable); break; } }
From source file:org.acmsl.queryj.tools.maven.AntProjectAdapter.java
License:Open Source License
/** * See {@link Project#log(Target, String, int)}. * @param target the target.//from w w w. j a va2 s. c o m * @param message the message. * @param throwable the error. * @param msgLevel either {@link Project#MSG_ERR}, {@link Project#MSG_WARN}, * {@link Project#MSG_INFO}, {@link Project#MSG_VERBOSE}, or {@link Project#MSG_DEBUG}. * @param log the {@link Log} instance. */ protected void log(@NotNull final Target target, @NotNull final String message, @NotNull final Throwable throwable, final int msgLevel, @NotNull final Log log) { @NotNull final String t_strMessage = "[" + target.getName() + "] " + message; switch (msgLevel) { case MSG_ERR: log.error(t_strMessage, throwable); break; case MSG_WARN: log.warn(t_strMessage, throwable); break; case MSG_VERBOSE: log.debug(t_strMessage, throwable); log.debug(t_strMessage, throwable); break; default: log.info(t_strMessage, throwable); break; } }
From source file:org.acmsl.queryj.tools.maven.CommonsLoggingMavenLogAdapter.java
License:Open Source License
/** * <p> Log a message with info log level. </p> * @param message log this message.//w w w. java2s .c om * @param info the info to log. * @param mavenLog the actual {@link Log} used for logging. */ protected void info(@NotNull final Object message, @NotNull final Throwable info, @NotNull final Log mavenLog) { mavenLog.info(message.toString(), info); }
From source file:org.mule.devkit.maven.AbstractGitHubMojo.java
License:Open Source License
/** * Log given message and throwable at info level * * @param message//from w ww. ja va 2s . c o m * @param throwable */ protected void info(String message, Throwable throwable) { Log log = getLog(); if (log != null) { log.info(message, throwable); } }