Skip to content

Loggical API Documentation v1.0.1


Loggical API Documentation / LoggerOptions

Interface: LoggerOptions

Defined in: types/logger.types.ts:18

Main configuration interface for Logger instances

This interface provides all the options users can configure when creating a new Logger instance.

Properties

preset?

ts
optional preset: "standard" | "compact" | "readable" | "server";

Defined in: types/logger.types.ts:20


prefix?

ts
optional prefix: string | string[];

Defined in: types/logger.types.ts:23


minLevel?

ts
optional minLevel: LogLevelType;

Defined in: types/logger.types.ts:24


colorLevel?

ts
optional colorLevel: ColorLevelType;

Defined in: types/logger.types.ts:27


timestamped?

ts
optional timestamped: boolean;

Defined in: types/logger.types.ts:28


compactObjects?

ts
optional compactObjects: boolean;

Defined in: types/logger.types.ts:29


shortTimestamp?

ts
optional shortTimestamp: boolean;

Defined in: types/logger.types.ts:30


maxValueLength?

ts
optional maxValueLength: number;

Defined in: types/logger.types.ts:31


useSymbols?

ts
optional useSymbols: boolean;

Defined in: types/logger.types.ts:32


showSeparators?

ts
optional showSeparators: boolean;

Defined in: types/logger.types.ts:33


spaceMessages?

ts
optional spaceMessages: boolean;

Defined in: types/logger.types.ts:34


redaction?

ts
optional redaction: boolean;

Defined in: types/logger.types.ts:35


fatalExitsProcess?

ts
optional fatalExitsProcess: boolean;

Defined in: types/logger.types.ts:36


transports?

ts
optional transports: Transport[];

Defined in: types/logger.types.ts:37


plugins?

ts
optional plugins: Plugin[];

Defined in: types/logger.types.ts:38

Released under the MIT License.