summaryrefslogtreecommitdiff
path: root/qpid/java/broker/src/velocity
Commit message (Collapse)AuthorAgeFilesLines
* QPID-2857 : Address issues found by running FindBugs against the Java codebaseRobert Godfrey2010-09-121-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@996393 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2802: Add support for a status-logging hierarchy, such that the ↵Robert Gemmell2010-08-261-0/+18
| | | | | | Log4jMessageLogger may use this to allow individual on/off toggling of each status message. Combine the RootLogger and RawLogger interfaces. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@989734 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2625 : Moved Logging generation to moudule.xml to allow plugins to ↵Martin Ritchie2010-06-141-15/+40
| | | | | | | | | | | | | | | | | | utilise the same functionality. To enable generation for your plugin just add : <target name="precompile" depends="gen_logging"/> to your build.xml Logging is now defined in a X_logmessage.properties file. Where X is used to make the XMessages.java class. Also updated all existing usages to remove the 3 digit prefix that wasn't adding any info. Updated ConfigStore and Transaction Log to use named properties rather than numeric values. If we are going to continue with <3 alpha>-<4 numeric> ids for messages then we'll need to have some registry to prevent clases. Perhaps it is simpler to relax this and require a plugin creator to provide a unique identifier for their messages. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@954432 13f79535-47bb-0310-9956-ffa450edef68
* Update LogMessage Generation to be based on a the existance of a ↵Martin Ritchie2010-06-141-71/+72
| | | | | | _logmessages.property file. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@954431 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2625 : Update GenerateLogMessages to probe the property file for ↵Martin Ritchie2010-06-022-18/+49
| | | | | | 3-Digit LoggingClasses and use that as the basis for generation. Expose LogSubjects from Queue and Session. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@950635 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2137 : Update ot LogMessages velocity macro to create a new ↵Martin Ritchie2010-01-131-21/+16
| | | | | | MessageFormat for each log message as re-using a static formatter is not thread safe. The gap between applyPattern() and format() gives another thread the chance to change the pattern. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@898821 13f79535-47bb-0310-9956-ffa450edef68
* Merged r 886719:886722 from 0.5.x-dev.Martin Ritchie2009-12-032-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@886842 13f79535-47bb-0310-9956-ffa450edef68
* Merged from java-broker-0-10 branchRobert Godfrey2009-10-251-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@829675 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2001 : Update to LogMessages.vm to perform the option removal BEFORE ↵Martin Ritchie2009-08-061-21/+21
| | | | | | replacement is performed. Encountered a problem creating Binding Tests where the brackets '[]' logged by the messsage caused the option removal to fail. Performing the removal before formatting will remove this problem. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@801724 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2002 : Completion of BrokerLoggingTest, the shutdown tests have been ↵Martin Ritchie2009-08-061-1/+16
| | | | | | excluded due to QPID-2031. An update to the LogMessages.vm templates and ApplicationRegistry was requried. This is because BrokerMessages is loaded before the ApplicationRegistry is initialised. As a result the NullApplicationRegistry is created which should not be used. The AR is loaded to discover the current Locale. There were a couple of options here. Either always use the Default Locale and have the AR loading set that or add the ability to check if the AR has been configured. I chose the latter as knowing if an AR exists may be useful for our testing framework. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@801575 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2001 : Update based on feedback from Marnie to be mindful of the impact ↵Martin Ritchie2009-08-031-8/+20
| | | | | | | | of message creation. Messages that do not need a message formatter now nolonger use the message formater. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@800358 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2001 : Update to provide control of options in messages.Martin Ritchie2009-07-242-71/+268
| | | | | | | | | Update to improve formatting of generated code Inclusion of more documentation Defaulted generation to use US locale Removed duplicate messages in MST that were added to while the option solution was being discussed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@797421 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2001 : Correct code style of generated filesMartin Ritchie2009-07-232-32/+139
| | | | | | QPID-2001 : Added documentation and replaced Integer with Number. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@797048 13f79535-47bb-0310-9956-ffa450edef68
* QPID-2001 : Add Default en_US messages logging along with a Velocity ↵Martin Ritchie2009-07-222-0/+324
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