From 6cdd3808f9ebd48a35489e8de8d3ac46b510b644 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 24 Sep 2015 15:10:36 +0200 Subject: [PATCH] =?utf8?q?auto-reformatted=20many=20files=20Signed-off-by:?= =?utf8?q?Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../jcoreeelogger/beans/local/logger/Log.java | 8 +-- .../beans/local/logger/LoggerBeanLocal.java | 52 +++++++++---------- 2 files changed, 30 insertions(+), 30 deletions(-) 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); } -- 2.39.5