cli-logger.d.ts 577 B

123456789101112131415
  1. /**
  2. * @license
  3. * Copyright Google LLC All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.dev/license
  7. */
  8. import { logging } from '../src';
  9. export interface ProcessOutput {
  10. write(buffer: string | Buffer): boolean;
  11. }
  12. /**
  13. * A Logger that sends information to STDOUT and STDERR.
  14. */
  15. export declare function createConsoleLogger(verbose?: boolean, stdout?: ProcessOutput, stderr?: ProcessOutput, colors?: Partial<Record<logging.LogLevel, (s: string) => string>>): logging.Logger;