package bhgomes.jaql.logging;

import java.util.logging.StreamHandler;

/**
 * Singleton object for System.out as a StreamHandler
 *
 * @author Brandon Gomes (bhgomes)
 */
public final class STDOUT extends StreamHandler {

    /**
     * Singleton instance
     */
    private static final STDOUT instance = new STDOUT();

    /**
     * Default constructor of the singleton instance
     */
    private STDOUT() {
        this.setOutputStream(System.out);
    }

    /**
     * @return instance of the singleton
     */
    public static final STDOUT getInstance() {
        return STDOUT.instance;
    }
}
