01: /*
02: * Copyright (C) The Apache Software Foundation. All rights reserved.
03: *
04: * This software is published under the terms of the Apache Software License
05: * version 1.1, a copy of which has been included with this distribution in
06: * the LICENSE file.
07: */
08: package org.jivesoftware.util.log.output.io.rotate;
09:
10: import java.io.File;
11:
12: /**
13: * Strategy for naming log files.
14: * For a given base file name an implementation calculates
15: * the real file name.
16: *
17: * @author <a href="mailto:bh22351@i-one.at">Bernhard Huber</a>
18: * @author <a href="mailto:peter@apache.org">Peter Donald</a>
19: */
20: public interface FileStrategy {
21:
22: /**
23: * Get the current logfile
24: */
25: File currentFile();
26:
27: /**
28: * Get the next log file to rotate to.
29: *
30: * @return the file to rotate to
31: */
32: File nextFile();
33: }
|