Permalink
Browse files

ISPN-2073: Fix overlapping message id ranges

  • Loading branch information...
1 parent 8ade99c commit 4f23dd8fed66230b6d09898166dbe1174bc8240e @tristantarrant tristantarrant committed with galderz May 29, 2012
View
@@ -5,3 +5,28 @@ Documentation for Infinispan is maintained on the JBoss.org content management s
If you are interested in contributing a translation of the documentation, please get in touch with the Infinispan development team. Details on how to do so are on http://www.jboss.org/infinispan/community
+Internationalising logging
+--------------------------
+
+Infinispan logs fully support internationalisation. The following is a list of modules and their message id reservation ranges:
+
+ 0001 - 1000 core
+ 1001 - 2000 tree
+ 2001 - 3000 bdbje cache store
+ 3001 - 4000 cassandra cache store
+ 4001 - 5000 hotrod client
+ 5001 - 6000 server core
+ 6001 - 7000 server hotrod
+ 7001 - 8000 cloud cache store
+ 8001 - 9000 jdbc cache store
+ 9001 - 10000 jdbm cache store
+10001 - 11000 remote cache store
+11001 - 12000 server memcached
+12001 - 13000 server rest
+13001 - 14000 server websocket
+14001 - 15000 query
+15001 - 16000 lucene directory
+16001 - 17000 rhq plugin
+17001 - 18000 cdi integration
+18001 - 19000 hbase
+
@@ -31,7 +31,7 @@
/**
* Log abstraction for the HBase store. For this module, message ids
- * ranging from 3001 to 4000 inclusively have been reserved.
+ * ranging from 18001 to 19000 inclusively have been reserved.
*
* @author Justin Hayes
* @since 5.2
@@ -40,7 +40,7 @@
public interface Log extends org.infinispan.util.logging.Log {
@LogMessage(level = ERROR)
- @Message(value = "Error removing key %s", id = 3001)
+ @Message(value = "Error removing key %s", id = 18001)
void errorRemovingKey(Object key, @Cause Exception e);
}
@@ -67,8 +67,8 @@
* Infinispan's log abstraction layer on top of JBoss Logging.
* <p/>
* It contains explicit methods for all INFO or above levels so that they can
- * be internationalized. For the core module, message ids ranging from 00001
- * to 2000 inclusively have been reserved.
+ * be internationalized. For the core module, message ids ranging from 0001
+ * to 1000 inclusively have been reserved.
* <p/>
* <code> Log log = LogFactory.getLog( getClass() ); </code> The above will get
* you an instance of <tt>Log</tt>, which can be used to generate log messages

0 comments on commit 4f23dd8

Please sign in to comment.