public class RotatingLogFile extends Object implements Comparable<RotatingLogFile>
Modifier and Type | Method and Description |
---|---|
int |
compareTo(RotatingLogFile o)
Compares this log file to another file.
|
File |
getFile()
Return the backing file.
|
static RotatingLogFile[] |
listFiles(File directory,
String basename)
List all log files inside some directory.
|
void |
rotate()
Rotate this file.
|
public File getFile()
public void rotate()
public int compareTo(RotatingLogFile o)
0
if they have the same version.compareTo
in interface Comparable<RotatingLogFile>
public static RotatingLogFile[] listFiles(File directory, String basename)
directory
- parent directorybasename
- basename expectedCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.