Name
LogStream
Synopsis
This class provides the server with an output stream to an error
log. LogStreams
can’t be created directly by the application. Instead,
a handle on a LogStream
is obtained by calling the static log()
method
with the name of the desired log. If the named log doesn’t exist, the
default log is returned. The default PrintStream
used to create new
LogStreams
can be gotten through the getDefaultStream()
method, and
set using the setDefaultStream()
method.
public class LogStream extends PrintStream { // No Constructor // Public Constants public static final int BRIEF; // =10 public static final int SILENT; // =0 public static final int VERBOSE; // =20 // Deprecated Public Methods public static PrintStream getDefaultStream(); // synchronized, # public java.io.OutputStream getOutputStream(); // synchronized, # public static LogStream log( String name); // # public static int parseLevel( String s); // # public static void setDefaultStream( // synchronized, # PrintStream newDefault); public void setOutputStream( java.io.OutputStream out); // synchronized, # public String toString(); // Overrides:Object, # public void write( int b); // Overrides:PrintStream, # public void write( byte[] b, int off, int len); // Overrides:PrintStream, # }
Returned By
LogStream.log()
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.