John Embretsen wrote: > 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. > > Hi Thank you for reply. I should use them in embedded Derby , so i can not pass parameters to it or try to set OS parameter because it goes to run on clients machines. so i asked for a method that allows me use them from my java codes.