/**
* Logger annotation. This file has been taken from
- * http://memorynotfound.com/java-se-unit-testing-cdi-junit-jboss-weld-se/ and has been slightly modified to make
- * it work.
+ * http://memorynotfound.com/java-se-unit-testing-cdi-junit-jboss-weld-se/ and
+ * has been slightly modified to make it work.
*
* @author Roland Haeder<roland@mxchange.org>
*/
@Qualifier
-@Retention(RetentionPolicy.RUNTIME)
-@Target({ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER, ElementType.TYPE})
+@Retention (RetentionPolicy.RUNTIME)
+@Target ({ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER, ElementType.TYPE})
public @interface Log {
}
@Local
public interface LoggerBeanLocal {
- /**
- * Log an exception
- *
- * @param throwable Thrown exception
- */
- public void logException (final Throwable throwable);
-
/**
* Log a debug message
*
public void logDebug (final String message);
/**
- * Log a trace message
+ * Log a debug message and cause
*
* @param message Message to log
+ * @param cause Causing exception
*/
- public void logTrace (final String message);
+ public void logDebug (final String message, final Throwable cause);
/**
- * Log a info message
+ * Log an exception
*
- * @param message Message to log
+ * @param throwable Thrown exception
*/
- public void logInfo (final String message);
+ public void logException (final Throwable throwable);
/**
- * Log a warning message
+ * Log a fatal message
*
* @param message Message to log
*/
- public void logWarning (final String message);
+ public void logFatal (final String message);
/**
- * Log a fatal message
+ * Log a fatal message and cause
*
* @param message Message to log
+ * @param cause Causing exception
*/
- public void logFatal (final String message);
+ public void logFatal (final String message, final Throwable cause);
/**
- * Log a trace message and cause
+ * Log a info message
*
* @param message Message to log
- * @param cause Causing exception
*/
- public void logTrace (final String message, final Throwable cause);
+ public void logInfo (final String message);
/**
* Log a info message and cause
public void logInfo (final String message, final Throwable cause);
/**
- * Log a debug message and cause
+ * Log a trace message
*
* @param message Message to log
- * @param cause Causing exception
*/
- public void logDebug (final String message, final Throwable cause);
+ public void logTrace (final String message);
/**
- * Log a warning message and cause
+ * Log a trace message and cause
*
* @param message Message to log
* @param cause Causing exception
*/
- public void logWarning (final String message, final Throwable cause);
+ public void logTrace (final String message, final Throwable cause);
/**
- * Log a fatal message and cause
+ * Log a warning message
+ *
+ * @param message Message to log
+ */
+ public void logWarning (final String message);
+
+ /**
+ * Log a warning message and cause
*
* @param message Message to log
* @param cause Causing exception
*/
- public void logFatal (final String message, final Throwable cause);
+ public void logWarning (final String message, final Throwable cause);
}