Akash, You can, but I think without modifying the conversion pattern (adding %i) it isn't possible. You can use multiple rollover policies, you would end up using the SizeBaseRolloverPolicy(?). I'm assuming if you have the time based rollover policy that you're using the date string.
James On Tue, Jun 3, 2014 at 7:21 AM, Steffen Ryll <[email protected]> wrote: > Looks as if you forgot pasting the conversion pattern. > Can you clarify? > > /Steffen > > Am 03.06.2014 08:54, schrieb Akash Jain: > > Hi, > > > > I am using org.apache.log4j.DailyRollingFileAppender for my logs with > > following conversion pattern : > > > > But I also want to use max File Size with this, so that the file is > rolled > > if it reaches a max size even if same day. > > > > How can I achieve this ? > > > > Thanks. > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
