UNPKG

637 BTypeScriptView Raw
1import type { Logger } from "@smithy/types";
2export type { Logger } from "@smithy/types";
3/**
4 * @public
5 *
6 * A list of logger's log level. These levels are sorted in
7 * order of increasing severity. Each log level includes itself and all
8 * the levels behind itself.
9 *
10 * @example `new Logger({logLevel: 'warn'})` will print all the warn and error
11 * message.
12 */
13export type LogLevel = "all" | "trace" | "debug" | "log" | "info" | "warn" | "error" | "off";
14/**
15 * @public
16 *
17 * An object consumed by Logger constructor to initiate a logger object.
18 */
19export interface LoggerOptions {
20 logger?: Logger;
21 logLevel?: LogLevel;
22}