You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Martin Ritchie (JIRA)" <qp...@incubator.apache.org> on 2009/09/07 14:17:57 UTC
[jira] Created: (QPID-2085) Broker Log4j configuration causes the
specified log4j to be cleared on startup
Broker Log4j configuration causes the specified log4j to be cleared on startup
------------------------------------------------------------------------------
Key: QPID-2085
URL: https://issues.apache.org/jira/browse/QPID-2085
Project: Qpid
Issue Type: Bug
Components: Java Broker
Reporter: Martin Ritchie
Assignee: Martin Ritchie
Fix For: 0.6
Set the default log4j.xml file for the broker to append to the existing log file rather than overwritting it.
Provide an easy mechanism to change the default rather than editing the log4j file.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org
[jira] Updated: (QPID-2085) Broker Log4j configuration causes the
specified log4j log file to be cleared on startup
Posted by "Marnie McCormack (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-2085?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marnie McCormack updated QPID-2085:
-----------------------------------
Fix Version/s: (was: 0.6)
0.7
Moving to 0.7
> Broker Log4j configuration causes the specified log4j log file to be cleared on startup
> ---------------------------------------------------------------------------------------
>
> Key: QPID-2085
> URL: https://issues.apache.org/jira/browse/QPID-2085
> Project: Qpid
> Issue Type: Bug
> Components: Java Broker
> Reporter: Martin Ritchie
> Fix For: 0.7
>
>
> Set the default log4j.xml file for the broker to append to the existing log file rather than overwritting it.
> Provide an easy mechanism to change the default rather than editing the log4j file.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org
[jira] Commented: (QPID-2085) Broker Log4j configuration causes the
specified log4j to be cleared on startup
Posted by "Martin Ritchie (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-2085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12765014#action_12765014 ]
Martin Ritchie commented on QPID-2085:
--------------------------------------
On further testing the QpidRollingFileAppender does not appear to behave as expected from the configuration.
Have noticed the following:
- qpid.log being archived shortly after creation, resulting in no log file for the broker. (When using StaticName)
- Log files being archived before 10MB setting, using default configuration.
- Log files index not being used as described in the comments. file .0 is always the current head of the log rather than 'n' as described.
If we want to keep logs from previous broker runs then we should re-investigate if the stock log4j RollingFileApender will address our current needs.
> Broker Log4j configuration causes the specified log4j to be cleared on startup
> ------------------------------------------------------------------------------
>
> Key: QPID-2085
> URL: https://issues.apache.org/jira/browse/QPID-2085
> Project: Qpid
> Issue Type: Bug
> Components: Java Broker
> Reporter: Martin Ritchie
> Assignee: Martin Ritchie
> Fix For: 0.6
>
>
> Set the default log4j.xml file for the broker to append to the existing log file rather than overwritting it.
> Provide an easy mechanism to change the default rather than editing the log4j file.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org
[jira] Commented: (QPID-2085) Broker Log4j configuration causes the
specified log4j to be cleared on startup
Posted by "Martin Ritchie (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-2085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752140#action_12752140 ]
Martin Ritchie commented on QPID-2085:
--------------------------------------
Change has been made setting environment QPID_LOG_APPEND to "true" or "false" will adjust the behaviour. This has only been completed for the qpid-server unix script. The windows version needs the same change.
Also a System test needs created to validate the change behaves as expected.
> Broker Log4j configuration causes the specified log4j to be cleared on startup
> ------------------------------------------------------------------------------
>
> Key: QPID-2085
> URL: https://issues.apache.org/jira/browse/QPID-2085
> Project: Qpid
> Issue Type: Bug
> Components: Java Broker
> Reporter: Martin Ritchie
> Assignee: Martin Ritchie
> Fix For: 0.6
>
>
> Set the default log4j.xml file for the broker to append to the existing log file rather than overwritting it.
> Provide an easy mechanism to change the default rather than editing the log4j file.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org
[jira] Updated: (QPID-2085) Broker Log4j configuration causes the
specified log4j log file to be cleared on startup
Posted by "Martin Ritchie (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-2085?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Ritchie updated QPID-2085:
---------------------------------
Summary: Broker Log4j configuration causes the specified log4j log file to be cleared on startup (was: Broker Log4j configuration causes the specified log4j to be cleared on startup)
> Broker Log4j configuration causes the specified log4j log file to be cleared on startup
> ---------------------------------------------------------------------------------------
>
> Key: QPID-2085
> URL: https://issues.apache.org/jira/browse/QPID-2085
> Project: Qpid
> Issue Type: Bug
> Components: Java Broker
> Reporter: Martin Ritchie
> Assignee: Martin Ritchie
> Fix For: 0.6
>
>
> Set the default log4j.xml file for the broker to append to the existing log file rather than overwritting it.
> Provide an easy mechanism to change the default rather than editing the log4j file.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org
[jira] Commented: (QPID-2085) Broker Log4j configuration causes the
specified log4j to be cleared on startup
Posted by "Martin Ritchie (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-2085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12764698#action_12764698 ]
Martin Ritchie commented on QPID-2085:
--------------------------------------
Reason for change is that during an automated test runs with an external broker the broker will overwrite its previous configuration as the APPEND value is set to false.
As this change will configure the Qpid broker default to create an unbounded log file. An alternative would be change the default appender to be the QpidRollingFileAppender which is defined within the log4j configuration file.
To maintain compatibility with other tools that may be configured to monitor the log file then the StaticLogFileName value should be set to 'true' this will ensure that the log file written to will be a static value e.g. qpid.log.
When the file is rolled over it will be moved and dated as per the configuration. e.g. qpid.log.2009-10-12-15-32.gz
> Broker Log4j configuration causes the specified log4j to be cleared on startup
> ------------------------------------------------------------------------------
>
> Key: QPID-2085
> URL: https://issues.apache.org/jira/browse/QPID-2085
> Project: Qpid
> Issue Type: Bug
> Components: Java Broker
> Reporter: Martin Ritchie
> Assignee: Martin Ritchie
> Fix For: 0.6
>
>
> Set the default log4j.xml file for the broker to append to the existing log file rather than overwritting it.
> Provide an easy mechanism to change the default rather than editing the log4j file.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org
[jira] Assigned: (QPID-2085) Broker Log4j configuration causes the
specified log4j log file to be cleared on startup
Posted by "Martin Ritchie (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-2085?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Ritchie reassigned QPID-2085:
------------------------------------
Assignee: (was: Martin Ritchie)
> Broker Log4j configuration causes the specified log4j log file to be cleared on startup
> ---------------------------------------------------------------------------------------
>
> Key: QPID-2085
> URL: https://issues.apache.org/jira/browse/QPID-2085
> Project: Qpid
> Issue Type: Bug
> Components: Java Broker
> Reporter: Martin Ritchie
> Fix For: 0.6
>
>
> Set the default log4j.xml file for the broker to append to the existing log file rather than overwritting it.
> Provide an easy mechanism to change the default rather than editing the log4j file.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org