// SPDX-License-Identifier: Apache-2.0
import { ProcessOutput } from 'listr2';
/** Uses the solo logger to handle process output from Listr2 */
export class CustomProcessOutput extends ProcessOutput {
    logger;
    constructor(logger) {
        super();
        this.logger = logger;
    }
    toStdout(chunk, eol = true) {
        return super.toStdout(chunk, eol);
    }
    toStderr(chunk, eol = true) {
        this.logger.error(chunk.toString());
        return super.toStderr(chunk, eol);
    }
}
//# sourceMappingURL=process-output.js.map