org.abstracthorizon.danube.support.logging.util
Interface LogFileRotator

All Known Implementing Classes:
LogFileRotatorImpl

public interface LogFileRotator

This interface defines simple log file (output stream) provider that knows how to rotate "logs"

Author:
Daniel Sendula

Method Summary
 OutputStream logFile()
          Returns output stream.
 void rotate()
          This method forces log rotation.
 

Method Detail

logFile

OutputStream logFile()
                     throws IOException
Returns output stream. This method checks if it is the time for logs to be rotated.

Returns:
output stream
Throws:
IOException - io exception

rotate

void rotate()
            throws IOException
This method forces log rotation.

Throws:
IOException - io exception


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.