Top Description Constructors Methods
org.apache.derby.impl.services.stream

public Class RollingFileStreamProvider

extends Object
Class Inheritance
Imports
java.io.IOException, .OutputStream, org.apache.derby.shared.common.reference.Property, org.apache.derby.iapi.services.property.PropertyUtil

Creates and configures a RollingFileStream
Author
brett

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static OutputStream

Returns:

The configured OutputStream
getOutputStream
()

Creates and returns the OutputStream for a RollingFileStream.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

RollingFileStreamProviderback to summary
public RollingFileStreamProvider()

Method Detail

getOutputStreamback to summary
public static OutputStream getOutputStream() throws IOException

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:OutputStream

The configured OutputStream