Class RollingFileStreamProvider
- java.lang.Object
-
- org.apache.derby.impl.services.stream.RollingFileStreamProvider
-
public class RollingFileStreamProvider extends java.lang.Object
Creates and configures a RollingFileStream- Author:
- brett
-
-
Constructor Summary
Constructors Constructor Description RollingFileStreamProvider()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.io.OutputStream
getOutputStream()
Creates and returns the OutputStream for a RollingFileStream.
-
-
-
Method Detail
-
getOutputStream
public static java.io.OutputStream getOutputStream() throws java.io.IOException, java.lang.SecurityException
Creates and returns the OutputStream for a RollingFileStream. The derbylog.properties file contains the configuration. If the file is not found, then hard coded default values are used to configure the RollingFileStream.The following properties can be specified
- pattern
- The pattern to use, the default is %d/derby-%g.log
- limit
- The file size limit, the default is 1024000
- count
- The file count, the default is 10
- append
- If true the last logfile is appended to, the default is true
- Returns:
- The configured OutputStream
- Throws:
java.io.IOException
java.lang.SecurityException
-
-