Hi all!
I'm getting started with log4j programming and i have my first doubt.
I want a logger size based triggering policy and time based rolling policy
so i'm using SizeBasedTriggeringPolicy and TimeBasedRollingPolicy in the
following way:
Logger root = Logger.getRootLogger();
Hello Delphina,
TimeBasedRollingPolicy is somewhat special. It is declared as:
public class TimeBasedRollingPolicy extends RollingPolicySkeleton
implements TriggeringPolicy {
}
Thus, it combines both a rolling policy and a triggering policy. Look at
the tests cases under