JDK-4267059 : Class LogStream is Deprecated with no replacement
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.rmi
  • Affected Version: 1.3.0
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 1999-08-30
  • Updated: 1999-08-31
  • Resolved: 1999-08-31
Related Reports
Relates :  
Description

Name: tb29552			Date: 08/30/99


We are wanting to redirect our error messages to a file.  I found th
e
class LogStream but it is Deprecated with no replacement.  Can you tell
me if I should use something else?  If nothing else can be used is there
a reason I should not use the LogStream?

According to this web page:
  http://java.sun.com/products/jdk/1.3/docs/api/java/rmi/server/LogStream.html
LogStream is still deprecated in J2SDK1.3beta.

The parent class (java.io.PrintStream) was deprecated for
a few releases but has been brought back to full status:
  http://java.sun.com/products/jdk/1.3/docs/api/java/io/PrintStream.html

Refer to Bug Id: 4139481
  Synopsis: java.io.PrintStream: Un-deprecate the constructors

======================================================================

Comments
WORK AROUND Name: tb29552 Date: 08/30/99 Use java.io.PrintStream? ====================================================================== You can still use LogStream, but we'd rather not endorse it. Instead, you can use PrintStream, or layer your own custom logging stream on top of PrintStream.
11-06-2004

EVALUATION LogStream will remain deprecated. michael.warres@east 1999-08-31
31-08-1999