[ mx4j-Bugs-954835 ] Do not write to System.out

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.java.mx4j.devel
Message-ID <[email protected]>
Bugs item #954835, was opened at 2004-05-16 16:06
Message generated for change (Comment added) made by mrumpf
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=954835&group_id=47745

Category: HTTP Adaptor
Group: Release 2.0.1
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Michael Rumpf (mrumpf)
Assigned to: Nobody/Anonymous (nobody)
Summary: Do not write to System.out

Initial Comment:
Hi,

the HTTP Adaptor writes the message "HttpAdaptor
version 2.0.1 started on port xxxxx" to System.out.

This causes troubles when incorporating the MX4J Http
Adapter and you are not able to redirect stdout.
because of other, important messages.

Either a quiet mode should be provided:

   publkic void HttpAdaptor.setQuiet(boolean quiet)
   {
      mQuiet = quiet;
   }

   public boolean getQuiet()
   {
      return mQuiet;
   }

and all System.out must be guarded by the following if

   if (!getQuiet())
   {
      System.out.println();
   }


Michael


----------------------------------------------------------------------

>Comment By: Michael Rumpf (mrumpf)
Date: 2004-05-16 16:23

Message:
Logged In: YES 
user_id=21814

OK, just forget the above. I looked at the sources and saw
thatt you are using loggers. I am calling
mx4j.log.Log.setDefaultPriority(mx4j.log.Logger.WARN))

now and I don't see the message anymore.
But you should think about changing the level from INFO to
FINE because it is the only thing that is printed at INFO level.

Sorry for the confusion...

   Michael

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=954835&group_id=47745


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.