1 /** 2 * LOGBack: the reliable, fast and flexible logging library for Java. 3 * 4 * Copyright (C) 1999-2006, QOS.ch 5 * 6 * This library is free software, you can redistribute it and/or modify it under 7 * the terms of the GNU Lesser General Public License as published by the Free 8 * Software Foundation. 9 */ 10 11 package ch.qos.logback.core.rolling; 12 13 import ch.qos.logback.core.spi.ContextAwareBase; 14 15 16 /** 17 * SizeBasedTriggeringPolicy looks at size of the file being 18 * currently written to. 19 * 20 * @author Ceki Gülcü 21 * 22 */ 23 abstract public class TriggeringPolicyBase<E> extends ContextAwareBase implements TriggeringPolicy<E> { 24 25 private boolean start; 26 27 public void start() { 28 start = true; 29 } 30 31 public void stop() { 32 start = false; 33 } 34 35 public boolean isStarted() { 36 return start; 37 } 38 39 40 41 }