Skip to content

Commit 015bbcb

Browse files
clydinalan-agius4
authored andcommitted
refactor(@angular-devkit/core): deprecate createConsoleLogger
`createConsoleLogger` is deprecated. Use a custom logger implementation instead. This does not apply to application code.
1 parent 8ebd2f1 commit 015bbcb

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

goldens/public-api/angular_devkit/core/node/index.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { Stats as Stats_2 } from 'node:fs';
1111
import { Subject } from 'rxjs';
1212
import { Subscription } from 'rxjs';
1313

14-
// @public
14+
// @public @deprecated
1515
export function createConsoleLogger(verbose?: boolean, stdout?: ProcessOutput, stderr?: ProcessOutput, colors?: Partial<Record<logging.LogLevel, (s: string) => string>>): logging.Logger;
1616

1717
// @public

packages/angular_devkit/core/node/cli-logger.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ export interface ProcessOutput {
1515

1616
/**
1717
* A Logger that sends information to STDOUT and STDERR.
18+
*
19+
* @deprecated Use a custom logger implementation instead.
1820
*/
1921
export function createConsoleLogger(
2022
verbose = false,

0 commit comments

Comments
 (0)