خرید بک لینک

Vote count: 0

I have this appender

 <RollingFile name="Application" fileName="/home/user/log/abc.log" filePatte="/var/log/mylog/abc-%d{yyy-MM-dd}-%i.log.gz">
            <PatteLayout>
                <Patte>%d{yyyy-MM-dd HH:mm:ss.SSS} abc        %-10level %class{36} %L %M - %msg%xEx%n</Patte>
            </PatteLayout>
            <Policies>
                <TimeBasedTriggeringPolicy />
                <SizeBasedTriggeringPolicy size="5 MB" />
            </Policies>
                <DefaultRolloverStrategy max="9999"/>
    </RollingFile>

when the 5 MB are reached and there is no space on /var/log/mylog I get the error "ERROR renaming file from xx to yy If I make space afterwards, the logger does not try again to rename the file. Any ideas how I could solve that?

I use log4j2 2.2

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 13 خرداد 1395 ساعت: 21:39

صفحه بندی