Initialize a FileHandler to write to a set of files. When (approximately) the given limit has been written to one file, another file will be opened. The output will cycle through a set of count files.
The FileHandler is configured based on LogManager properties (or their default values) except that the given pattern argument is used as the filename pattern, the file limit is set to the limit argument, and the file count is set to the given count argument.
The count must be at least 1.
pattern | the pattern for naming the output file | |
limit | the maximum number of bytes to write to any one file | |
count | the number of files to use |
IOException | if there are IO problems opening the files. | |
SecurityException | if a security manager exists and if the caller does not have LoggingPermission("control"). | |
IllegalArgumentException | if limit < 0, or count < 1. | |
IllegalArgumentException | if pattern is an empty string |
Diagram: Handler