You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by Xavier Vigouroux <Xa...@Sun.COM> on 2005/09/08 11:50:53 UTC

suppress "connection %d" message on console

hi,

is there a way to remove the message on console indicating new 
connection to the server ?

thanks

-- 
Xavier VIGOUROUX - sun microsystems


Re: suppress "connection %d" message on console

Posted by Kathey Marsden <km...@sbcglobal.net>.
Øystein Grøvlen wrote:

>  In my opinion,
>the logConnections property should affect both console output and
>output to the derby.log file.
>
>  
>
Sounds good.




Re: suppress "connection %d" message on console

Posted by Øystein Grøvlen <Oy...@Sun.COM>.
>>>>> "KM" == Kathey Marsden <km...@sbcglobal.net> writes:

    KM> Øystein Grøvlen wrote:
    >>>>>>> "XV" == Xavier Vigouroux <Xa...@Sun.COM> writes:
    >>>>>>> 
    >>>>>>> 
    >> 
    XV> hi,
    XV> is  there  a way  to  remove the  message  on  console indicating  new
    XV> connection to the server ?
    >> 
    >> As far as I can see from the code, these messages will always go to
    >> System.out.   Please file a JIRA issue if you want this to change.
    >> 
    >> 
    >> 
    KM> You could  specify an alternate console PrintWriter with
    KM> NetworkServerControl.start (null will suppress  output)  or use the
    KM> derby.drda.startNetworkServer property to start the server and then the
    KM> console output will go to derby.log.

If I understand this correctly, both these options requires that you
create your own java program in order to start the network server.  If
you invoke NetworkServerControl.main (as the provided scripts do), it
does not seem to be any way to turn off the console output.

Anyhow, your solution will turn off all console output.  The request
was to be able to turn off logging of new connections.  In my opinion,
the logConnections property should affect both console output and
output to the derby.log file.

-- 
Øystein


Re: suppress "connection %d" message on console

Posted by Kathey Marsden <km...@sbcglobal.net>.
Øystein Grøvlen wrote:

>>>>>>"XV" == Xavier Vigouroux <Xa...@Sun.COM> writes:
>>>>>>            
>>>>>>
>
>    XV> hi,
>    XV> is  there  a way  to  remove the  message  on  console indicating  new
>    XV> connection to the server ?
>
>As far as I can see from the code, these messages will always go to
>System.out.   Please file a JIRA issue if you want this to change.
>
>  
>
You could  specify an alternate console PrintWriter with
NetworkServerControl.start (null will suppress  output)  or use the
derby.drda.startNetworkServer property to start the server and then the
console output will go to derby.log.

Kathey



Re: suppress "connection %d" message on console

Posted by Xavier Vigouroux <Xa...@Sun.COM>.
Le 13 sept. 05, à 12:15, Øystein Grøvlen a écrit :

>>>>>> "XV" == Xavier Vigouroux <Xa...@Sun.COM> 
>>>>>> writes:
>
>     XV> hi,
>     XV> is  there  a way  to  remove the  message  on  console 
> indicating  new
>     XV> connection to the server ?
>
> As far as I can see from the code, these messages will always go to
> System.out.   Please file a JIRA issue if you want this to change.
>

done,

http://issues.apache.org/jira/browse/DERBY-569

> -- 
> Øystein
>
>
-- 
Xavier VIGOUROUX - sun microsystems


Re: suppress "connection %d" message on console

Posted by Øystein Grøvlen <Oy...@Sun.COM>.
>>>>> "XV" == Xavier Vigouroux <Xa...@Sun.COM> writes:

    XV> hi,
    XV> is  there  a way  to  remove the  message  on  console indicating  new
    XV> connection to the server ?

As far as I can see from the code, these messages will always go to
System.out.   Please file a JIRA issue if you want this to change.

-- 
Øystein