summaryrefslogtreecommitdiff
path: root/qpid/java/broker/src/main
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2009-07-22 17:11:51 +0000
committerMartin Ritchie <ritchiem@apache.org>2009-07-22 17:11:51 +0000
commit9fec22f37a0e46d0f253c6a3b6183cf720e1e758 (patch)
tree7b42f8f038be63452c3f456662c6d52203095e85 /qpid/java/broker/src/main
parentf9f7fdc64cce0afd37d2c420fc37619b6eb35731 (diff)
downloadqpid-python-9fec22f37a0e46d0f253c6a3b6183cf720e1e758.tar.gz
QPID-2001 : Add Default en_US messages logging along with a Velocity Template to generate static <Type>Messages classes that can be used for compile time vaildation of logging.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@796800 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/broker/src/main')
-rw-r--r--qpid/java/broker/src/main/java/org/apache/qpid/server/logging/BrokerMessages.java34
-rw-r--r--qpid/java/broker/src/main/java/org/apache/qpid/server/logging/messages/LogMessages_en_US.properties82
2 files changed, 82 insertions, 34 deletions
diff --git a/qpid/java/broker/src/main/java/org/apache/qpid/server/logging/BrokerMessages.java b/qpid/java/broker/src/main/java/org/apache/qpid/server/logging/BrokerMessages.java
deleted file mode 100644
index e9cc7449cd..0000000000
--- a/qpid/java/broker/src/main/java/org/apache/qpid/server/logging/BrokerMessages.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
- *
- */
-package org.apache.qpid.server.logging;
-
-public class BrokerMessages
-{
-
- public static LogMessage BRK_1001(String version, String build)
- {
- return new LogMessage()
- {
-
- };
- }
-
-}
diff --git a/qpid/java/broker/src/main/java/org/apache/qpid/server/logging/messages/LogMessages_en_US.properties b/qpid/java/broker/src/main/java/org/apache/qpid/server/logging/messages/LogMessages_en_US.properties
new file mode 100644
index 0000000000..868a611134
--- /dev/null
+++ b/qpid/java/broker/src/main/java/org/apache/qpid/server/logging/messages/LogMessages_en_US.properties
@@ -0,0 +1,82 @@
+#Broker
+# 0 - Version
+# 1 = Build
+BRK-1001 = Startup : Version: {0} Build: {1}
+# 0 - Transport
+# 1 - Port
+BRK-1002 = Starting : Listening on {0} port {1,number}
+# 0 - Transport
+# 1 - Port
+BRK-1003 = Shuting down : {0} port {1,number}
+BRK-1004 = Ready
+BRK-1005 = Stopped
+# 0 - path
+BRK-1006 = Using configuration : {0}
+# 0 - path
+BRK-1007 = Using logging configuration : {0}
+
+#ManagementConsole
+MNG-1001 = Startup
+# 0 - Service
+# 1 - Port
+MNG-1002 = Starting : {0} : Listening on port {1,number}
+# 0 - Service
+# 1 - Port
+MNG-1003 = Shuting down : {0} : port {1,number}
+MNG-1004 = Ready
+MNG-1005 = Stopped
+# 0 - Path
+MNG-1006 = Using SSL Keystore : {0}
+
+#VirtualHost
+# 0 - name
+VHT-1001 = Created : {0}
+VHT-1002 = Closed
+
+#MessageStore
+# 0 - name
+MST-1001 = Created : {0}
+# 0 - path
+MST-1002 = Store location : {0}
+MST-1003 = Closed
+MST-1004 = Recovery Start
+# 0 - queue name
+MST-1005 = Recovery Start : {0}
+# 0 - count
+# 1 - queue count
+MST-1006 = Recovered {0,number} messages for queue {0}
+MST-1007 = Recovery Complete
+# 0 - queue name
+MST-1008 = Recovery Complete : {0}
+
+#Connection
+# 0 - Client id
+# 1 - Protocol Version
+CON-1001 = Open : Client ID {0} : Protocol Version : {1}
+CON-1002 = Close
+
+#Channel
+# 0 - count
+CHN-1001 = Create : Prefetch {0,number}
+# 0 - flow
+CHN-1002 = Flow {0}
+CHN-1003 = Close
+
+#Queue
+# 0 - owner
+QUE-1001 = Create : Owner:{0} [AutoDelete] [Durable|Transient] [Priority:<levels>]
+QUE-1002 = Deleted
+
+#Exchange
+# 0 - type
+# 1 - name
+EXH-1001 = Create : [Durable] Type:{0} Name:{1}
+EXH-1002 = Deleted
+
+#Binding
+BND-1001 = Create [: Arguments : <key=value>]
+BND-1002 = Deleted
+
+#Subscription
+SUB-1001 = Create : [Durable] [Arguments : <key=value>]
+SUB-1002 = Close