FileDocCategorySizeDatePackage
SimpleLogger.javaAPI DocExample694Thu Nov 08 00:22:34 GMT 2001com.ora.rmibook.chapter12.bank

SimpleLogger

public class SimpleLogger extends Object implements Logger

Fields Summary
private static SimpleLogger
_singleton
private PrintStream
_loggingStream
Constructors Summary
private SimpleLogger()

        _loggingStream = System.err;
    
Methods Summary
public static synchronized com.ora.rmibook.chapter12.bank.SimpleLoggergetSingleton()

        if (null == _singleton) {
            _singleton = new SimpleLogger();
        }
        return _singleton;
    
public synchronized voidlogString(java.lang.String string)

        _loggingStream.println(string);
    
public voidsetOutputStream(java.io.PrintStream outputStream)

        _loggingStream = outputStream;