Class RollingFileStreamProvider

java.lang.Object
org.apache.derby.impl.services.stream.RollingFileStreamProvider

public class RollingFileStreamProvider extends Object
Creates and configures a RollingFileStream
Author:
brett
  • Constructor Details

    • RollingFileStreamProvider

      public RollingFileStreamProvider()
  • Method Details

    • getOutputStream

      public static OutputStream getOutputStream() throws IOException, 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:
      IOException
      SecurityException