db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anon User <pingwei...@gmail.com>
Subject Re: Derby housekeep function for derby.log
Date Mon, 15 Jul 2013 08:29:22 GMT
Hi All,

- This is set in derby. properties:
derby.stream.error.method=derbyLogRotation.derbyLogRotation

- Found example on empty log messages online: ( changed the class and
function name to derbyLogRotation )

public class derbyLogRotation
{
  public static java.io.OutputStream derbyLogRotation(){
    return new java.io.OutputStream() {
      public void write(int b) throws IOException {
        // Ignore all log messages
      }
    };
  }
}

Have looked through java.util.logging, java.io.OutputStream, also slf4j.
Understand how they info out the logger, but how does it stream existing
logging from derby.log to new derby.log. 

Intend to implement file rotation on derby.log using log4j -
rollingFileAppender. Any example on how to manage the input to output will
be very much appreciated, thank you. 



--
View this message in context: http://apache-database.10148.n7.nabble.com/Derby-housekeep-function-for-derby-log-tp132438p132559.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.

Mime
View raw message