/*
 * Copyright (C) The Apache Software Foundation. All rights reserved.
 *
 * This software is published under the terms of the Apache Software License
 * version 1.1, a copy of which has been included  with this distribution in
 * the LICENSE.txt file.
 */
package org.apache.aut.nativelib;

import org.apache.avalon.framework.logger.AbstractLogEnabled;

/**
 * This class is used to receive notifications of what the native
 * process outputs to standard output and standard error.
 *
 * @author <a href="mailto:peter@apache.org">Peter Donald</a>
 * @version $Revision$ $Date$
 */
public class DefaultExecOutputHandler
    extends AbstractLogEnabled
    implements ExecOutputHandler
{
    /**
     * Receive notification about the process writing
     * to standard output.
     */
    public void stdout( final String line )
    {
        getLogger().info( line );
    }

    /**
     * Receive notification about the process writing
     * to standard error.
     */
    public void stderr( final String line )
    {
        getLogger().warn( line );
    }
}
