From f8822dc31106e865d44175002ce6bee1d7f191bc Mon Sep 17 00:00:00 2001 From: George Fu Date: Fri, 11 Nov 2022 12:17:27 -0500 Subject: [PATCH] chore(smithy-client): add no-op logger (#4172) --- packages/smithy-client/src/NoOpLogger.ts | 9 +++++++++ packages/smithy-client/src/index.ts | 1 + 2 files changed, 10 insertions(+) create mode 100644 packages/smithy-client/src/NoOpLogger.ts diff --git a/packages/smithy-client/src/NoOpLogger.ts b/packages/smithy-client/src/NoOpLogger.ts new file mode 100644 index 000000000000..222b9341f461 --- /dev/null +++ b/packages/smithy-client/src/NoOpLogger.ts @@ -0,0 +1,9 @@ +import { Logger } from "@aws-sdk/types"; + +export class NoOpLogger implements Logger { + public trace() {} + public debug() {} + public info() {} + public warn() {} + public error() {} +} diff --git a/packages/smithy-client/src/index.ts b/packages/smithy-client/src/index.ts index b23ceb3ab214..0b7db823a4eb 100644 --- a/packages/smithy-client/src/index.ts +++ b/packages/smithy-client/src/index.ts @@ -1,3 +1,4 @@ +export * from "./NoOpLogger"; export * from "./client"; export * from "./command"; export * from "./constants";