From: Roland Haeder Date: Thu, 24 Sep 2015 13:10:36 +0000 (+0200) Subject: auto-reformatted many files X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6cdd3808f9ebd48a35489e8de8d3ac46b510b644;p=jcore-logger-lib.git auto-reformatted many files Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/jcoreeelogger/beans/local/logger/Log.java b/src/org/mxchange/jcoreeelogger/beans/local/logger/Log.java index 613e965..30b77a8 100644 --- a/src/org/mxchange/jcoreeelogger/beans/local/logger/Log.java +++ b/src/org/mxchange/jcoreeelogger/beans/local/logger/Log.java @@ -24,13 +24,13 @@ import javax.inject.Qualifier; /** * 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 */ @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 { } diff --git a/src/org/mxchange/jcoreeelogger/beans/local/logger/LoggerBeanLocal.java b/src/org/mxchange/jcoreeelogger/beans/local/logger/LoggerBeanLocal.java index f777151..974cf73 100644 --- a/src/org/mxchange/jcoreeelogger/beans/local/logger/LoggerBeanLocal.java +++ b/src/org/mxchange/jcoreeelogger/beans/local/logger/LoggerBeanLocal.java @@ -26,13 +26,6 @@ import javax.ejb.Local; @Local public interface LoggerBeanLocal { - /** - * Log an exception - * - * @param throwable Thrown exception - */ - public void logException (final Throwable throwable); - /** * Log a debug message * @@ -41,40 +34,41 @@ public interface LoggerBeanLocal { 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 @@ -85,26 +79,32 @@ public interface LoggerBeanLocal { 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); }