Class LogStreamHandler

  • All Implemented Interfaces:
    ExecuteStreamHandler

    public class LogStreamHandler
    extends PumpStreamHandler
    Logs standard output and error of a subprocess to the log system of ant.
    Since:
    Ant 1.2
    • Constructor Detail

      • LogStreamHandler

        public LogStreamHandler​(Task task,
                                int outlevel,
                                int errlevel)
        Creates log stream handler
        Parameters:
        task - the task for whom to log
        outlevel - the loglevel used to log standard output
        errlevel - the loglevel used to log standard error
      • LogStreamHandler

        public LogStreamHandler​(ProjectComponent pc,
                                int outlevel,
                                int errlevel)
        Creates log stream handler
        Parameters:
        pc - the project component for whom to log
        outlevel - the loglevel used to log standard output
        errlevel - the loglevel used to log standard error