diff --git a/packages/cli-common/src/commands/base-command.ts b/packages/cli-common/src/commands/base-command.ts index b55d4545..47841e36 100644 --- a/packages/cli-common/src/commands/base-command.ts +++ b/packages/cli-common/src/commands/base-command.ts @@ -119,8 +119,8 @@ abstract class BaseCommand extends Comm oclifSettings.debug = true } this.#rawArgs = raw - this.logger = commandLogger(this, this.jsonEnabled() ? 'stderr' : 'stdout') this.stdErrLogger = commandLogger(this, 'stderr') + this.logger = this.jsonEnabled() ? this.stdErrLogger : commandLogger(this, 'stdout') } protected logger!: Logger