I have tried below code to write logs based on SizeAndTimeBasedRollingPolicy

In that i can able to write files with respect to file size 100KB but not
able to maintain only 2 maxHistory files.It always write new file after
100KB successfully written.

Now i have using NiFI-1.3.0 which having logback version 1.2.3 for core and
classic jars.

<appender name="APP_FILE"



            <maxFileSize>100 KB</maxFileSize>

            <!-- keep 30 log files worth of history -->





            <pattern>%date %level [%thread] %logger{40} %msg%n</pattern>



I have faced like issue that may belongs to below task.


I have used NiFi-1.3.0 it only uses logback 1.2.3.

In NiFi i have found one jira for upgrade logback.


I think logback latest version is 1.2.3. Here it seems MaxHistory property
doesn't work.

Am i missing anythink?

Can anyone suggest me to solve this?

Reply via email to