65 lines
2.5 KiB
Diff
65 lines
2.5 KiB
Diff
From c57f3b50126a45c99d6e46d70675ab7213ca9f32 Mon Sep 17 00:00:00 2001
|
|
From: Marek Goldmann <marek.goldmann@gmail.com>
|
|
Date: Mon, 23 Mar 2015 12:29:23 +0100
|
|
Subject: [PATCH] Add support for newer jboss-logging-tools
|
|
|
|
---
|
|
.../org/jboss/weld/environment/logging/WeldEnvironmentLogger.java | 3 +++
|
|
impl/src/main/java/org/jboss/weld/logging/WeldLogger.java | 4 ++++
|
|
2 files changed, 7 insertions(+)
|
|
|
|
diff --git a/environments/common/src/main/java/org/jboss/weld/environment/logging/WeldEnvironmentLogger.java b/environments/common/src/main/java/org/jboss/weld/environment/logging/WeldEnvironmentLogger.java
|
|
index 027929a..f09a168 100644
|
|
--- a/environments/common/src/main/java/org/jboss/weld/environment/logging/WeldEnvironmentLogger.java
|
|
+++ b/environments/common/src/main/java/org/jboss/weld/environment/logging/WeldEnvironmentLogger.java
|
|
@@ -1,17 +1,20 @@
|
|
package org.jboss.weld.environment.logging;
|
|
|
|
+import static org.jboss.weld.environment.logging.WeldEnvironmentLogger.WELD_ENV_PROJECT_CODE;
|
|
|
|
import org.jboss.logging.BasicLogger;
|
|
import org.jboss.logging.Logger.Level;
|
|
import org.jboss.logging.annotations.Cause;
|
|
import org.jboss.logging.annotations.LogMessage;
|
|
import org.jboss.logging.annotations.Message;
|
|
+import org.jboss.logging.annotations.MessageLogger;
|
|
|
|
/**
|
|
*
|
|
* @author Matej Briškár
|
|
* @author Martin Kouba
|
|
*/
|
|
+@MessageLogger(projectCode = WELD_ENV_PROJECT_CODE)
|
|
public interface WeldEnvironmentLogger extends BasicLogger {
|
|
|
|
String CATCHING_MARKER = "Catching";
|
|
diff --git a/impl/src/main/java/org/jboss/weld/logging/WeldLogger.java b/impl/src/main/java/org/jboss/weld/logging/WeldLogger.java
|
|
index 184d3d7..f4a0778 100644
|
|
--- a/impl/src/main/java/org/jboss/weld/logging/WeldLogger.java
|
|
+++ b/impl/src/main/java/org/jboss/weld/logging/WeldLogger.java
|
|
@@ -16,17 +16,21 @@
|
|
*/
|
|
package org.jboss.weld.logging;
|
|
|
|
+import static org.jboss.weld.logging.WeldLogger.WELD_PROJECT_CODE;
|
|
+
|
|
import org.jboss.logging.BasicLogger;
|
|
import org.jboss.logging.Logger.Level;
|
|
import org.jboss.logging.annotations.Cause;
|
|
import org.jboss.logging.annotations.LogMessage;
|
|
import org.jboss.logging.annotations.Message;
|
|
+import org.jboss.logging.annotations.MessageLogger;
|
|
|
|
/**
|
|
* A source of localized log/bundle messages and exceptions. Note that this interface extends {@link BasicLogger} so that regular logger methods are available.
|
|
*
|
|
* @author Martin Kouba
|
|
*/
|
|
+@MessageLogger(projectCode = WELD_PROJECT_CODE)
|
|
public interface WeldLogger extends BasicLogger {
|
|
|
|
String CATCHING_MARKER = "Catching";
|
|
--
|
|
2.3.3
|
|
|