@datadog/datadog-ci-plugin-container-app 5.19.0 → 5.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.d.ts CHANGED
@@ -2274,7 +2274,7 @@ interface Dapr {
2274
2274
  /** Increasing max size of request body http and grpc servers parameter in MB to handle uploading of big files. Default is 4 MB. */
2275
2275
  httpMaxRequestSize?: number;
2276
2276
  /** Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info. */
2277
- logLevel?: LogLevel;
2277
+ logLevel?: LogLevel$1;
2278
2278
  /** Enables API logging for the Dapr sidecar */
2279
2279
  enableApiLogging?: boolean;
2280
2280
  /** Dapr application health check configuration */
@@ -4287,7 +4287,7 @@ type AppProtocol = string;
4287
4287
  * **warn** \
4288
4288
  * **error**
4289
4289
  */
4290
- type LogLevel = string;
4290
+ type LogLevel$1 = string;
4291
4291
  /**
4292
4292
  * Defines values for IdentitySettingsLifeCycle. \
4293
4293
  * {@link KnownIdentitySettingsLifeCycle} can be used interchangeably with IdentitySettingsLifeCycle,
@@ -7179,6 +7179,40 @@ declare abstract class Command<Context extends BaseContext = BaseContext> {
7179
7179
  static Default: never[];
7180
7180
  }
7181
7181
  //#endregion
7182
+ //#region ../base/dist/helpers/logger.d.ts
7183
+ declare enum LogLevel {
7184
+ DEBUG = 1,
7185
+ INFO = 2,
7186
+ WARN = 3,
7187
+ ERROR = 4
7188
+ }
7189
+ interface LoggerOptions {
7190
+ shouldIncludeTimestamp?: boolean;
7191
+ /**
7192
+ * When `true`, every log call emits a single-line JSON object instead of
7193
+ * ANSI-coloured text. Useful when Datadog itself (or any other log
7194
+ * pipeline) ingests CLI output: each line parses cleanly and `level` is
7195
+ * preserved instead of every `error` showing up as `info`.
7196
+ */
7197
+ jsonOutput?: boolean;
7198
+ }
7199
+ declare class Logger {
7200
+ private loglevel;
7201
+ private rawWriteMessage;
7202
+ private shouldIncludeTimestamp;
7203
+ private jsonOutput;
7204
+ constructor(writeMessage: (s: string) => void, loglevel: LogLevel, shouldIncludeTimestampOrOptions?: boolean | LoggerOptions);
7205
+ setLogLevel(newLogLevel: LogLevel): void;
7206
+ setShouldIncludeTime(newShouldIncludeTimestamp: boolean): void;
7207
+ setJsonOutput(newJsonOutput: boolean): void;
7208
+ isJsonOutput(): boolean;
7209
+ error(s: string): void;
7210
+ warn(s: string): void;
7211
+ info(s: string): void;
7212
+ debug(s: string): void;
7213
+ private emit;
7214
+ }
7215
+ //#endregion
7182
7216
  //#region ../base/dist/index.d.ts
7183
7217
  type CommandContext = BaseContext & {
7184
7218
  builtinPlugins: string[];
@@ -7186,7 +7220,11 @@ type CommandContext = BaseContext & {
7186
7220
  /**
7187
7221
  * This command should be extended by **every** command in the monorepo.
7188
7222
  */
7189
- declare abstract class BaseCommand extends Command<CommandContext> {}
7223
+ declare abstract class BaseCommand extends Command<CommandContext> {
7224
+ protected logFormat: "json" | "text";
7225
+ private _logger?;
7226
+ get logger(): Logger;
7227
+ }
7190
7228
  //#endregion
7191
7229
  //#region ../base/dist/commands/container-app/common.d.ts
7192
7230
  /**