Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

com.gentleware.services.util

Class LogStream

com.gentleware.services.util.LogStream

public class LogStream


LogStream is an OutputStream that forwards print requests to a LogManager using a specified log Level.

Output sent to standard out can be forwarded to a log manager by wrapping a LogStream in a PrintStream and using System.setOut() to replace the default output print stream.

Created: 28.02.2003 15:40:24

Authors:
Stephen Kelvin


 Attribute Summary
private StringBuffer  _buffer
 
private String  _lineSeparator
 
private int  _separatorIndex
 
private Thread  _shutdownThread
 
arrow_up
 

 Association Summary
private Level  _level
 
arrow_up
 

 Constructor Summary
public   LogStream(Level level)
 
arrow_up
 

 Method Summary
public void   close()
 
public void   flush()
 
protected LogManager   getLogManager()
 
private void   log()
 
public void   write(byte[] b)
 
public void   write(byte[] b, int off, int len)
 
public void   write(int b)
 
arrow_up
 

Tagged Values
static false
 

 Attribute Detail

_buffer

private StringBuffer _buffer

arrow_up


_lineSeparator

private String _lineSeparator

arrow_up


_separatorIndex

private int _separatorIndex

arrow_up


_shutdownThread

private Thread _shutdownThread

arrow_up
 Association Detail

_level

private Level _level

arrow_up
 Constructor Detail

LogStream

public LogStream LogStream(Level level)

Parameters:
level -
Returns:
arrow_up
 Method Detail

close

public void close()

arrow_up


flush

public void flush()

arrow_up


getLogManager

protected LogManager getLogManager()

Returns:
arrow_up


log

private void log()

arrow_up


write

public void write(byte[] b)

Parameters:
b -
arrow_up


write

public void write(byte[] b, int off, int len)

Parameters:
b -
off -
len -
arrow_up


write

public void write(int b)

Parameters:
b -
arrow_up
Created  2004 - 10 - 21

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2003-2004 Gentleware AG, Schanzenstr. 70, 20357 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.