db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Embretsen <John.Embret...@Sun.COM>
Subject Re: how to turn off all derby logging , specially derby.log
Date Fri, 13 Oct 2006 13:58:11 GMT
legolas wood wrote:
> John Embretsen wrote:
>> I think that is possible, by specifying a (Java) stream to which the
>> error/info log will be written instead. Take a look at the Tuning
>> guide pages for the following properties:
>> derby.stream.error.field
>> derby.stream.error.method
> Thank you for reply.
> how i can use this parameters from within java source code of my
> application ?

Not sure what you mean. Let's say that you are using the Network Server and that 
you start it from the command line. Then you have to specify one of these 
properties when starting the server (using, for example, 
-Dderby.stream.error.field=java.lang.System.err), or in a derby.properties file 
before starting the server.

If you don't want to use a pre-defined stream (such as System.err or 
System.out), you will have to make one that is accessible as a Java field or via 
a Java method.


View raw message