com.github.ffremont.jrobot.core.console.ErrPrintStream.java Source code

Java tutorial

Introduction

Here is the source code for com.github.ffremont.jrobot.core.console.ErrPrintStream.java

Source

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.github.ffremont.jrobot.core.console;

import java.io.OutputStream;
import java.io.PrintStream;
import org.apache.commons.io.output.NullOutputStream;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 * @author florent
 */
public class ErrPrintStream extends PrintStream {

    final static Logger LOGGER = LoggerFactory.getLogger(ErrPrintStream.class);

    public ErrPrintStream() {
        super(new NullOutputStream());
    }

    @Override
    public void print(String s) {
        LOGGER.error(s);
    }

}