Class RollingFileStreamProvider


  • public class RollingFileStreamProvider
    extends java.lang.Object
    Creates and configures a RollingFileStream
    Author:
    brett
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RollingFileStreamProvider

        public RollingFileStreamProvider()
    • 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