Liang Jiashan created LOG4J2-2826:
-------------------------------------
Summary: FileGroup is not working when the log file is rolled over.
Key: LOG4J2-2826
URL: https://issues.apache.org/jira/browse/LOG4J2-2826
Project: Log4j 2
Issue Type: Bug
Reporter: Liang Jiashan
I set fileGroup of RollingRandomAccessFile to 1000. It is working when the log
file is firstly created. But when it's rolled over, the fileGroup is changed to
root. My java process is running as root.
<RollingRandomAccessFile name="RollingRandomAccessFile"
fileGroup="1000"
append="true">
<Policies>
<SizeBasedTriggeringPolicy size="50MB"/>
</Policies>
<DefaultRolloverStrategy max="10">
<Delete basePath="${log.dir}/backup" maxDepth="2">
<IfFileName glob="${instance}-*.log.gz">
<IfLastModified age="30d">
<IfAny>
<IfAccumulatedFileSize exceeds="2GB"/>
</IfAny>
</IfLastModified>
</IfFileName>
</Delete>
</DefaultRolloverStrategy>
</RollingRandomAccessFile>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)