UNPKG

1.29 kBTypeScriptView Raw
1import { LoggerService, LogLevel } from '../services/logger.service';
2/**
3 * @publicApi
4 */
5export declare class NestApplicationContextOptions {
6 /**
7 * Specifies the logger to use. Pass `false` to turn off logging.
8 */
9 logger?: LoggerService | LogLevel[] | false;
10 /**
11 * Whether to abort the process on Error. By default, the process is exited.
12 * Pass `false` to override the default behavior. If `false` is passed, Nest will not exit
13 * the application and instead will rethrow the exception.
14 * @default true
15 */
16 abortOnError?: boolean | undefined;
17 /**
18 * If enabled, logs will be buffered until the "Logger#flush" method is called.
19 * @default false
20 */
21 bufferLogs?: boolean;
22 /**
23 * If enabled, logs will be automatically flushed and buffer detached when
24 * application initialization process either completes or fails.
25 * @default true
26 */
27 autoFlushLogs?: boolean;
28 /**
29 * Whether to run application in the preview mode.
30 * In the preview mode, providers/controllers are not instantiated & resolved.
31 *
32 * @default false
33 */
34 preview?: boolean;
35 /**
36 * Whether to generate a serialized graph snapshot.
37 *
38 * @default false
39 */
40 snapshot?: boolean;
41}