[
https://issues.apache.org/jira/browse/HADOOP-5100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jerome Boulon updated HADOOP-5100:
----------------------------------
Status: Patch Available (was: Open)
Set append flag to true.
>From log4j Doc API
/**
The <b>Append</b> option takes a boolean value. It is set to
<code>true</code> by default. If true, then <code>File</code>
will be opened in append mode by {...@link #setFile setFile} (see
above). Otherwise, {...@link #setFile setFile} will open
<code>File</code> in truncate mode.
<p>Note: Actual opening of the file is made when {...@link
#activateOptions} is called, not when the options are set.
*/
public
void setAppend(boolean flag) {
fileAppend = flag;
}
> Chukwa Log4JMetricsContext class should append new log to current log file
> --------------------------------------------------------------------------
>
> Key: HADOOP-5100
> URL: https://issues.apache.org/jira/browse/HADOOP-5100
> Project: Hadoop Core
> Issue Type: Bug
> Components: contrib/chukwa
> Reporter: Jerome Boulon
> Assignee: Jerome Boulon
> Attachments: HADOOP-5100.patch
>
>
> Log4JMetricsContext is setting is own appender dynamically and by doing so
> it's truncating the current log file. It should append to it if the file
> exist.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.