You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by de...@geronimo.apache.org on 2004/08/12 20:00:20 UTC
[jira] Created: (GERONIMO-287) Control-C termination overwrites log files created with log4j.xml
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/GERONIMO-287
Here is an overview of the issue:
---------------------------------------------------------------------
Key: GERONIMO-287
Summary: Control-C termination overwrites log files created with log4j.xml
Type: Bug
Status: Unassigned
Priority: Minor
Project: Apache Geronimo
Components:
core
Assignee:
Reporter: David Farb
Created: Thu, 12 Aug 2004 10:59 AM
Updated: Thu, 12 Aug 2004 10:59 AM
Environment: Windows 2000, Java 1.4.2_04, and Java 1.5.0-beta2, CVS of Aug 8, 2004
Description:
When running with a log4j.xml parameter file, and terminating Geronimo with a Control-C, the log files are overwritten starting with the time of termination.
The final log only contains entries AFTER the control-C was issued, all the content prior to the Control-C is lost.
Since Control-C is the only way to shut down at the moment, this is an issue to be aware of.
If I get the chance, I will try to track it down, but ...
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Assigned: (GERONIMO-287) Control-C termination overwrites log files created with log4j.xml
Posted by "Gianny DAMOUR (JIRA)" <de...@geronimo.apache.org>.
[ http://issues.apache.org/jira/browse/GERONIMO-287?page=history ]
Gianny DAMOUR reassigned GERONIMO-287:
--------------------------------------
Assign To: Gianny DAMOUR
> Control-C termination overwrites log files created with log4j.xml
> -----------------------------------------------------------------
>
> Key: GERONIMO-287
> URL: http://issues.apache.org/jira/browse/GERONIMO-287
> Project: Geronimo
> Type: Bug
> Components: core
> Environment: Windows 2000, Java 1.4.2_04, and Java 1.5.0-beta2, CVS of Aug 8, 2004
> Reporter: David Farb
> Assignee: Gianny DAMOUR
> Priority: Minor
>
> When running with a log4j.xml parameter file, and terminating Geronimo with a Control-C, the log files are overwritten starting with the time of termination.
> The final log only contains entries AFTER the control-C was issued, all the content prior to the Control-C is lost.
> Since Control-C is the only way to shut down at the moment, this is an issue to be aware of.
> If I get the chance, I will try to track it down, but ...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Commented: (GERONIMO-287) Control-C termination overwrites log files created with log4j.xml
Posted by "Gianny DAMOUR (JIRA)" <de...@geronimo.apache.org>.
[ http://issues.apache.org/jira/browse/GERONIMO-287?page=comments#action_60705 ]
Gianny DAMOUR commented on GERONIMO-287:
----------------------------------------
David, thanks for having raised this issue.
Currently Geronimo comes with .properties files for Log4J. As a matter of fact, a Control-C does not overwrite the log files.
Having said that, would you like to contribute the corresponding .xml files?
> Control-C termination overwrites log files created with log4j.xml
> -----------------------------------------------------------------
>
> Key: GERONIMO-287
> URL: http://issues.apache.org/jira/browse/GERONIMO-287
> Project: Geronimo
> Type: Bug
> Components: core
> Environment: Windows 2000, Java 1.4.2_04, and Java 1.5.0-beta2, CVS of Aug 8, 2004
> Reporter: David Farb
> Assignee: Gianny DAMOUR
> Priority: Minor
>
> When running with a log4j.xml parameter file, and terminating Geronimo with a Control-C, the log files are overwritten starting with the time of termination.
> The final log only contains entries AFTER the control-C was issued, all the content prior to the Control-C is lost.
> Since Control-C is the only way to shut down at the moment, this is an issue to be aware of.
> If I get the chance, I will try to track it down, but ...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Commented: (GERONIMO-287) Control-C termination overwrites log files created with log4j.xml
Posted by de...@geronimo.apache.org.
The following comment has been added to this issue:
Author: David Farb
Created: Thu, 12 Aug 2004 4:04 PM
Body:
Apparently if the Append parameter on the DailyRollingFileAppender is set to 'false' the above occurs. This implies that Geronimo is closing and re-opening the log while it is running. This close/open behavior seems to happen more often than just at termination.
The fix is to set:
<param name="Append" value="true"/>
for the rolling file appender. Giving Geronimo a new file name for every invocation via command line properties creates a new log file for each invocation.
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/GERONIMO-287?page=comments#action_37234
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/GERONIMO-287
Here is an overview of the issue:
---------------------------------------------------------------------
Key: GERONIMO-287
Summary: Control-C termination overwrites log files created with log4j.xml
Type: Bug
Status: Unassigned
Priority: Minor
Project: Apache Geronimo
Components:
core
Assignee:
Reporter: David Farb
Created: Thu, 12 Aug 2004 10:59 AM
Updated: Thu, 12 Aug 2004 4:04 PM
Environment: Windows 2000, Java 1.4.2_04, and Java 1.5.0-beta2, CVS of Aug 8, 2004
Description:
When running with a log4j.xml parameter file, and terminating Geronimo with a Control-C, the log files are overwritten starting with the time of termination.
The final log only contains entries AFTER the control-C was issued, all the content prior to the Control-C is lost.
Since Control-C is the only way to shut down at the moment, this is an issue to be aware of.
If I get the chance, I will try to track it down, but ...
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Updated: (GERONIMO-287) Control-C termination overwrites log files created with log4j.xml
Posted by "David Blevins (JIRA)" <de...@geronimo.apache.org>.
[ http://issues.apache.org/jira/browse/GERONIMO-287?page=all ]
David Blevins updated GERONIMO-287:
-----------------------------------
Fix Version: 1.0
(was: 1.0-M5)
> Control-C termination overwrites log files created with log4j.xml
> -----------------------------------------------------------------
>
> Key: GERONIMO-287
> URL: http://issues.apache.org/jira/browse/GERONIMO-287
> Project: Geronimo
> Type: Bug
> Components: core
> Environment: Windows 2000, Java 1.4.2_04, and Java 1.5.0-beta2, CVS of Aug 8, 2004
> Reporter: David Farb
> Assignee: Gianny Damour
> Priority: Minor
> Fix For: 1.0
>
> When running with a log4j.xml parameter file, and terminating Geronimo with a Control-C, the log files are overwritten starting with the time of termination.
> The final log only contains entries AFTER the control-C was issued, all the content prior to the Control-C is lost.
> Since Control-C is the only way to shut down at the moment, this is an issue to be aware of.
> If I get the chance, I will try to track it down, but ...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Closed: (GERONIMO-287) Control-C termination overwrites log files created with log4j.xml
Posted by "Matt Hogstrom (JIRA)" <de...@geronimo.apache.org>.
[ http://issues.apache.org/jira/browse/GERONIMO-287?page=all ]
Matt Hogstrom closed GERONIMO-287:
----------------------------------
Resolution: Fixed
Added comments to log4j properties files to alert customers to potential loss of log data if the value is changed.
Sending assembly/src/var/log/client-log4j.properties
Sending assembly/src/var/log/deployer-log4j.properties
Sending assembly/src/var/log/server-log4j.properties
Transmitting file data ...
Committed revision 332447.
> Control-C termination overwrites log files created with log4j.xml
> -----------------------------------------------------------------
>
> Key: GERONIMO-287
> URL: http://issues.apache.org/jira/browse/GERONIMO-287
> Project: Geronimo
> Type: Bug
> Components: core
> Environment: Windows 2000, Java 1.4.2_04, and Java 1.5.0-beta2, CVS of Aug 8, 2004
> Reporter: David Farb
> Assignee: Gianny Damour
> Priority: Minor
> Fix For: 1.0
>
> When running with a log4j.xml parameter file, and terminating Geronimo with a Control-C, the log files are overwritten starting with the time of termination.
> The final log only contains entries AFTER the control-C was issued, all the content prior to the Control-C is lost.
> Since Control-C is the only way to shut down at the moment, this is an issue to be aware of.
> If I get the chance, I will try to track it down, but ...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (GERONIMO-287) Control-C termination overwrites log files created with log4j.xml
Posted by "Aaron Mulder (JIRA)" <de...@geronimo.apache.org>.
[ http://issues.apache.org/jira/browse/GERONIMO-287?page=all ]
Aaron Mulder updated GERONIMO-287:
----------------------------------
Fix Version: 1.0-M5
Description:
When running with a log4j.xml parameter file, and terminating Geronimo with a Control-C, the log files are overwritten starting with the time of termination.
The final log only contains entries AFTER the control-C was issued, all the content prior to the Control-C is lost.
Since Control-C is the only way to shut down at the moment, this is an issue to be aware of.
If I get the chance, I will try to track it down, but ...
was:
When running with a log4j.xml parameter file, and terminating Geronimo with a Control-C, the log files are overwritten starting with the time of termination.
The final log only contains entries AFTER the control-C was issued, all the content prior to the Control-C is lost.
Since Control-C is the only way to shut down at the moment, this is an issue to be aware of.
If I get the chance, I will try to track it down, but ...
This behavior does not currently occur, but we have append=true. We should test with append=false for M5, and if the described behavior is accurate, at least put a comment in our config file to the effect of "don't change this under any circumstances!".
> Control-C termination overwrites log files created with log4j.xml
> -----------------------------------------------------------------
>
> Key: GERONIMO-287
> URL: http://issues.apache.org/jira/browse/GERONIMO-287
> Project: Geronimo
> Type: Bug
> Components: core
> Environment: Windows 2000, Java 1.4.2_04, and Java 1.5.0-beta2, CVS of Aug 8, 2004
> Reporter: David Farb
> Assignee: Gianny Damour
> Priority: Minor
> Fix For: 1.0-M5
>
> When running with a log4j.xml parameter file, and terminating Geronimo with a Control-C, the log files are overwritten starting with the time of termination.
> The final log only contains entries AFTER the control-C was issued, all the content prior to the Control-C is lost.
> Since Control-C is the only way to shut down at the moment, this is an issue to be aware of.
> If I get the chance, I will try to track it down, but ...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira