Class RollingFileStreamProvider
java.lang.Object
org.apache.derby.impl.services.stream.RollingFileStreamProvider
Creates and configures a RollingFileStream
- Author:
- brett
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OutputStream
Creates and returns the OutputStream for a RollingFileStream.
-
Constructor Details
-
RollingFileStreamProvider
public RollingFileStreamProvider()
-
-
Method Details
-
getOutputStream
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:
IOException
SecurityException
-