UNPKG

961 BTypeScriptView 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 initialisation process either completes or fails.
25 * @default true
26 */
27 autoFlushLogs?: boolean;
28}