-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update deprecated getMessageLogger(..) method usage
- Loading branch information
Showing
14 changed files
with
51 additions
and
14 deletions.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
implementation/core/src/main/java/io/smallrye/faulttolerance/core/CoreLogger.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
package io.smallrye.faulttolerance.core; | ||
|
||
import java.lang.invoke.MethodHandles; | ||
|
||
import org.jboss.logging.BasicLogger; | ||
import org.jboss.logging.Logger; | ||
import org.jboss.logging.annotations.MessageLogger; | ||
|
||
@MessageLogger(projectCode = "SRFTL", length = 5) | ||
interface CoreLogger extends BasicLogger { | ||
CoreLogger LOG = Logger.getMessageLogger(CoreLogger.class, CoreLogger.class.getPackage().getName()); | ||
CoreLogger LOG = Logger.getMessageLogger(MethodHandles.lookup(), CoreLogger.class, CoreLogger.class.getPackage().getName()); | ||
} |
5 changes: 4 additions & 1 deletion
5
implementation/core/src/main/java/io/smallrye/faulttolerance/core/async/AsyncLogger.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
package io.smallrye.faulttolerance.core.async; | ||
|
||
import java.lang.invoke.MethodHandles; | ||
|
||
import org.jboss.logging.BasicLogger; | ||
import org.jboss.logging.Logger; | ||
import org.jboss.logging.annotations.MessageLogger; | ||
|
||
@MessageLogger(projectCode = "SRFTL", length = 5) | ||
interface AsyncLogger extends BasicLogger { | ||
AsyncLogger LOG = Logger.getMessageLogger(AsyncLogger.class, AsyncLogger.class.getPackage().getName()); | ||
AsyncLogger LOG = Logger.getMessageLogger(MethodHandles.lookup(), AsyncLogger.class, | ||
AsyncLogger.class.getPackage().getName()); | ||
} |
5 changes: 4 additions & 1 deletion
5
...mentation/core/src/main/java/io/smallrye/faulttolerance/core/bulkhead/BulkheadLogger.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...e/src/main/java/io/smallrye/faulttolerance/core/circuit/breaker/CircuitBreakerLogger.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
...mentation/core/src/main/java/io/smallrye/faulttolerance/core/fallback/FallbackLogger.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
package io.smallrye.faulttolerance.core.fallback; | ||
|
||
import java.lang.invoke.MethodHandles; | ||
|
||
import org.jboss.logging.BasicLogger; | ||
import org.jboss.logging.Logger; | ||
import org.jboss.logging.annotations.MessageLogger; | ||
|
||
@MessageLogger(projectCode = "SRFTL", length = 5) | ||
interface FallbackLogger extends BasicLogger { | ||
FallbackLogger LOG = Logger.getMessageLogger(FallbackLogger.class, FallbackLogger.class.getPackage().getName()); | ||
FallbackLogger LOG = Logger.getMessageLogger(MethodHandles.lookup(), FallbackLogger.class, | ||
FallbackLogger.class.getPackage().getName()); | ||
} |
5 changes: 4 additions & 1 deletion
5
implementation/core/src/main/java/io/smallrye/faulttolerance/core/metrics/MetricsLogger.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
package io.smallrye.faulttolerance.core.metrics; | ||
|
||
import java.lang.invoke.MethodHandles; | ||
|
||
import org.jboss.logging.BasicLogger; | ||
import org.jboss.logging.Logger; | ||
import org.jboss.logging.annotations.MessageLogger; | ||
|
||
@MessageLogger(projectCode = "SRFTL", length = 5) | ||
interface MetricsLogger extends BasicLogger { | ||
MetricsLogger LOG = Logger.getMessageLogger(MetricsLogger.class, MetricsLogger.class.getPackage().getName()); | ||
MetricsLogger LOG = Logger.getMessageLogger(MethodHandles.lookup(), MetricsLogger.class, | ||
MetricsLogger.class.getPackage().getName()); | ||
} |
4 changes: 3 additions & 1 deletion
4
...tation/core/src/main/java/io/smallrye/faulttolerance/core/rate/limit/RateLimitLogger.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
package io.smallrye.faulttolerance.core.rate.limit; | ||
|
||
import java.lang.invoke.MethodHandles; | ||
|
||
import org.jboss.logging.BasicLogger; | ||
import org.jboss.logging.Logger; | ||
import org.jboss.logging.annotations.MessageLogger; | ||
|
||
@MessageLogger(projectCode = "SRFTL", length = 5) | ||
interface RateLimitLogger extends BasicLogger { | ||
RateLimitLogger LOG = Logger.getMessageLogger(RateLimitLogger.class, | ||
RateLimitLogger LOG = Logger.getMessageLogger(MethodHandles.lookup(), RateLimitLogger.class, | ||
RateLimitLogger.class.getPackage().getName()); | ||
} |
5 changes: 4 additions & 1 deletion
5
implementation/core/src/main/java/io/smallrye/faulttolerance/core/retry/RetryLogger.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
package io.smallrye.faulttolerance.core.retry; | ||
|
||
import java.lang.invoke.MethodHandles; | ||
|
||
import org.jboss.logging.BasicLogger; | ||
import org.jboss.logging.Logger; | ||
import org.jboss.logging.annotations.MessageLogger; | ||
|
||
@MessageLogger(projectCode = "SRFTL", length = 5) | ||
interface RetryLogger extends BasicLogger { | ||
RetryLogger LOG = Logger.getMessageLogger(RetryLogger.class, RetryLogger.class.getPackage().getName()); | ||
RetryLogger LOG = Logger.getMessageLogger(MethodHandles.lookup(), RetryLogger.class, | ||
RetryLogger.class.getPackage().getName()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
...ion/fault-tolerance/src/main/java/io/smallrye/faulttolerance/internal/InternalLogger.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
package io.smallrye.faulttolerance.internal; | ||
|
||
import java.lang.invoke.MethodHandles; | ||
|
||
import org.jboss.logging.BasicLogger; | ||
import org.jboss.logging.Logger; | ||
import org.jboss.logging.annotations.MessageLogger; | ||
|
||
@MessageLogger(projectCode = "SRFTL", length = 5) | ||
interface InternalLogger extends BasicLogger { | ||
InternalLogger LOG = Logger.getMessageLogger(InternalLogger.class, InternalLogger.class.getPackage().getName()); | ||
InternalLogger LOG = Logger.getMessageLogger(MethodHandles.lookup(), InternalLogger.class, | ||
InternalLogger.class.getPackage().getName()); | ||
} |
5 changes: 4 additions & 1 deletion
5
implementation/vertx/src/main/java/io/smallrye/faulttolerance/vertx/VertxLogger.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
package io.smallrye.faulttolerance.vertx; | ||
|
||
import java.lang.invoke.MethodHandles; | ||
|
||
import org.jboss.logging.BasicLogger; | ||
import org.jboss.logging.Logger; | ||
import org.jboss.logging.annotations.MessageLogger; | ||
|
||
@MessageLogger(projectCode = "SRFTL", length = 5) | ||
interface VertxLogger extends BasicLogger { | ||
VertxLogger LOG = Logger.getMessageLogger(VertxLogger.class, VertxLogger.class.getPackage().getName()); | ||
VertxLogger LOG = Logger.getMessageLogger(MethodHandles.lookup(), VertxLogger.class, | ||
VertxLogger.class.getPackage().getName()); | ||
} |